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

[heft-jest-plugin] Add --disable-code-coverage option #3367

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

elliot-nelson
Copy link
Collaborator

Summary

Add a command-line option for Heft that temporarily disables code coverage.

Fixes #3307

Details

In some cases (for example, when using --watch on files that end up running tests in multiple files), the output of the code coverage reporter can be long and get in the way of the test failures the developer is focusing on.

A command-line option allows a developer to temporarily opt-out of code coverage while focusing on fixing, and then they can turn it back on (without the hassle of hand-editing a jest.config.json and possibly accidentally checking it in).

How it was tested

  • Tested locally in projects with and without code coverage turned on
  • Confirmed coverage is ON if configured unless --disable-code-coverage is specified

@iclanton iclanton enabled auto-merge April 25, 2022 19:18
@iclanton iclanton added this to In Progress in Bug Triage Apr 25, 2022
@iclanton iclanton merged commit e2ec1c7 into microsoft:main Apr 25, 2022
Bug Triage automation moved this from In Progress to Closed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Bug Triage
  
Closed
Development

Successfully merging this pull request may close these issues.

[heft] heft test cannot skip code coverage
2 participants