Skip to content

Commit

Permalink
fix(docs): Code coverage fails per summary, not per file
Browse files Browse the repository at this point in the history
  • Loading branch information
miyasudokoro committed Oct 25, 2024
1 parent 8abd326 commit 1a96c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/test-runner/writing-tests/code-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Additionally, your config file has a `coverage` boolean to toggle coverage on an
## Basic configuration

Code coverage is measured using four metrics: statements, branches, functions, and lines.
The test runner measures these metrics for each file.
The test runner measures these metrics across all files combined.

In `coverageConfig`, you need to define your desired code coverage thresholds for each metric.
The test run fails if you drop below this level for any metric in any file.
The test run fails if you drop below this level for any metric.
The default setting is 0 for each metric.

**Example minimum to require code coverage:**
Expand Down

0 comments on commit 1a96c92

Please sign in to comment.