Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: enable test coverage only for CI #10142

Closed
wants to merge 2 commits into from

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Jun 23, 2020

SUMMARY

Currently Python unit tests via nosetests always output test coverage, but there's no way to disable it. The very long coverage report is quite annoying and makes it more difficult to scan test errors, especially when you just want to run a single test.

This PR disables test coverage by default, but reenables it for CI jobs that run the full test suite.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

See SUMMARY

TEST PLAN

Make sure test coverage still reported for GitHub PRs.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@ktmud
Copy link
Member Author

ktmud commented Jun 23, 2020

Hmm, Codecov still not reporting coverage, even though it looks normal from build logs. Close and re-open to see if it fixes the issue.

@ktmud ktmud closed this Jun 23, 2020
@ktmud ktmud reopened this Jun 23, 2020
@willbarrett
Copy link
Member

I'm a big fan of this change. Once codecov is working on this branch count me in for an approval.

@ktmud
Copy link
Member Author

ktmud commented Jun 26, 2020

Codecov still acting weird. Close in favor of #10177 .

@bkyryliuk could you make sure pytest doesn't output the same type of junk coverage report when running a single test locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants