Sobes.tech
Junior — Middle

What level of test coverage was achieved in the previous project?

sobes.tech AI

Answer from AI

Test coverage level is the percentage of code that is tested by tests. In the previous project, we usually aimed for about 70-80% coverage, which provides a balance between quality and the cost of writing tests.

To measure coverage in Python, tools like coverage.py are often used. It shows which lines of code were executed during tests.

Example of running with coverage:

coverage run -m pytest
coverage report

It is important to remember that a high coverage percentage does not guarantee the absence of errors, but it helps identify problematic areas.