From 1aa168e9d77d5f4a674e63c1213ec93c6bf96581 Mon Sep 17 00:00:00 2001 From: Fernando Cordeiro Date: Thu, 13 Apr 2023 09:33:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06_testing/coverage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/06_testing/coverage.md b/06_testing/coverage.md index df8e7d9..03571d0 100644 --- a/06_testing/coverage.md +++ b/06_testing/coverage.md @@ -1,6 +1,6 @@ # Test Coverage -Test coverage is a software development metric that measures the how much of your code is covered by tests. It's typically expressed as a percentage, where higher percentages indicate more extensive testing. +Test coverage is a software development metric that measures how much of your code is covered by tests. It's typically expressed as a percentage, where higher percentages indicate more extensive testing. Test coverage is important for several reasons: @@ -22,11 +22,11 @@ Then run `pytest` with the `--cov` flag: pytest tests/ --cov ``` -> **Note**: Remember that a high coverage doesn't guarantee bug-free code, as it only shows which parts of the code are executed during testing, not if the tests are effective or meaningful. Don't writ unnecessary tests just to increase coverage. +> **Note**: Remember that a high coverage doesn't guarantee bug-free code, as it only shows which parts of the code are executed during testing, not if the tests are effective or meaningful. Don't write unnecessary tests just to increase coverage. ## HTML Reports -Sometime you want to see exactly what lines are not being covered by tests. To answer that question, you can generate an HTML report. +Sometimes you want to see exactly what lines are not being covered by tests. To answer that question, you can generate an HTML report. ### Using `pytest-cov` plugin