From 1a96c92bb2f0bb31918e8b93c38df474d9de076d Mon Sep 17 00:00:00 2001 From: Devin McIntyre Date: Fri, 25 Oct 2024 12:31:45 -0600 Subject: [PATCH] fix(docs): Code coverage fails per summary, not per file --- docs/docs/test-runner/writing-tests/code-coverage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/test-runner/writing-tests/code-coverage.md b/docs/docs/test-runner/writing-tests/code-coverage.md index f60f03ee3..cfb6d7173 100644 --- a/docs/docs/test-runner/writing-tests/code-coverage.md +++ b/docs/docs/test-runner/writing-tests/code-coverage.md @@ -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:**