feat(coverage): thresholds to support maximum uncovered items by jonahkagan · Pull Request #7061 · vitest-dev/vitest (original) (raw)

added 3 commits

December 10, 2024 12:30

@jonahkagan

Match Jest's API for coverage thresholds, treating positive numbers as percentage thresholds (lines: X means X% of lines must be covered) and negative numbers as absolute thresholds (lines: -X means no more than X lines may be uncovered).

@jonahkagan

When using absolute coverage thresholds (configured using negative numbers) with the autoUpdate flag, set the new thresholds based on the reported number of uncovered entities. If there are no uncovered entities, set the threshold to 100%.

@jonahkagan

Remove links to Istanbul docs since those docs only talk about percentage thresholds (and they don't contain any additional information that isn't already in the vitest docs).

@AriPerkkio AriPerkkio changed the titlefeat(coverage): support configuring coverage thresholds as minimum percentages or maximum uncovered items feat(coverage): thresholds to support maximum uncovered items

Dec 11, 2024

AriPerkkio

@jonahkagan @AriPerkkio

Co-authored-by: Ari Perkkiö ari.perkkio@gmail.com

@jonahkagan

@jonahkagan

AriPerkkio

@jonahkagan @AriPerkkio

Co-authored-by: Ari Perkkiö ari.perkkio@gmail.com

@jonahkagan

AriPerkkio

renovate Bot added a commit to mmkal/eslint-plugin-mmkal that referenced this pull request

Jan 16, 2025

@renovate

This was referenced

Jan 30, 2025

jelmore1674 pushed a commit to jelmore1674/build-changelog that referenced this pull request

Mar 19, 2025

This PR contains the following updates:

Package Type Update Change
@vitest/coverage-v8 (source) devDependencies major 2.1.8 -> 3.0.4
vitest (source) devDependencies major 2.1.8 -> 3.0.4

Release Notes

vitest-dev/vitest (@​vitest/coverage-v8)

v3.0.4

Compare Source

🐞 Bug Fixes
View changes on GitHub

v3.0.3

Compare Source

🐞 Bug Fixes
🏎 Performance
View changes on GitHub

v3.0.2

Compare Source

🐞 Bug Fixes
View changes on GitHub

v3.0.1

Compare Source

🐞 Bug Fixes
View changes on GitHub

v3.0.0

Compare Source

Vitest 3 is here! There are a few breaking changes, but we expect the migration to be smooth. This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.

🚨 Breaking Changes
🚀 Features
🐞 Bug Fixes
View changes on GitHub

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Renovate Bot.

Reviewed-on: https://gitea.justinelmore.dev/jelmore1674/build-changelog/pulls/79 Co-authored-by: Renovate Bot renovate-bot@forgejo.justinelmore.dev Co-committed-by: Renovate Bot renovate-bot@forgejo.justinelmore.dev

This was referenced

Jun 2, 2025

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})