v0.4.0
Highlights π‘
Code coverage support π
Rstest supports collecting code coverage and generating coverage reports using istanbul.
$ npx rstest --coverage
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------Learn more about Code coverage.
What's Changed
New Features π
- feat: add istanbul coverage provider by @travzhang in #399
- feat: support
coverage.reportersoption by @9aoy in #556 - feat: support
coverage.reportsDirectoryoption by @9aoy in #557 - feat: support clean coverage directory before running tests by @9aoy in #558
- feat: support check coverage thresholds by @9aoy in #560
- feat: support enable coverage via
--coverageby @9aoy in #568 - feat: allow set coverage thresholds as negative number by @9aoy in #570
Bug Fixes π
- fix: should exclude test files from coverage collection by @9aoy in #559
- fix(coverage): fix coverage exclusion on windows by @kwonoj in #562
Document π
Other Changes
- chore(deps): update dependency axios to v1.12.0 [security] by @renovate[bot] in #561
- chore: remove useless istanbul deps by @9aoy in #563
- chore(deps): bump swc-plugin-coverage-instrument by @9aoy in #565
- chore: add AGENTS.md by @fi3ework in #567
- chore(deps): update all non-major dependencies by @renovate[bot] in #535
New Contributors
- @travzhang made their first contribution in #399
- @kwonoj made their first contribution in #562
Full Changelog: v0.3.4...v0.4.0