Skip to main content

← All terms · Testing

Coverage

Measures which lines your tests execute. 100% is rarely the goal — 'every important path covered once' is.

Learn this interactively:

Open lesson lesson-143

Related — Testing

pytestDe facto Python test framework. `def test_x():` and `assert` — that's the whole FixtureReusable test setup. Declared with `@pytest.fixture`, injected by parameter nameParametrizeRun the same test against multiple inputs: `@pytest.mark.parametrize("x,y", [(1,