Robots Atlas>ROBOTS ATLAS

Python — From Basics to Advanced · Testing with pytest

Coverage and organisation

Testing with pytest

Introduction

pytest-cov measures which lines and branches of code your tests execute. Custom markers (e.g., @pytest.mark.slow) and config files (pytest.ini / pyproject.toml) organise your test suite — from selective runs to enforced coverage thresholds in CI.