Skip to content

v0.4.0

Choose a tag to compare

@9aoy 9aoy released this 17 Sep 08:12
· 66 commits to main since this release
11fb143

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.reporters option by @9aoy in #556
  • feat: support coverage.reportsDirectory option 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 --coverage by @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 πŸ“–

  • docs: add coverage configuration by @9aoy in #564
  • docs: polish coverage doc by @9aoy in #569

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

Full Changelog: v0.3.4...v0.4.0