Skip to content

Don't collect coverage info by default when running tests#2542

Merged
shtlrs merged 2 commits into
mainfrom
dont-collect-coverage-on-test
Apr 20, 2023
Merged

Don't collect coverage info by default when running tests#2542
shtlrs merged 2 commits into
mainfrom
dont-collect-coverage-on-test

Conversation

@wookie184
Copy link
Copy Markdown
Contributor

I'm pretty sure in 99% of cases when people are running tests they wont be checking coverage, since we don't take coverage too seriously.

Instead of having poetry run task test-nocov the option to not collect coverage info, this makes that default and adds a poetry run task test-cov option if coverage info is wanted.

For me this doubles the speed of poetry run task test (from ~20 seconds to ~10 seconds).

Copy link
Copy Markdown
Contributor

@shtlrs shtlrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We sure like our tests sped up ! :shipit:

@shtlrs shtlrs enabled auto-merge April 20, 2023 20:37
@shtlrs shtlrs merged commit 26ba45e into main Apr 20, 2023
@shtlrs shtlrs deleted the dont-collect-coverage-on-test branch April 20, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants