tezvyn:

How would you block merges when PR coverage drops 2%?

Source: docs.codecov.comintermediate

WHAT IT TESTS: Your ability to wire automated coverage gates into CI and version control. ANSWER OUTLINE: Upload coverage to Codecov, set a project status threshold of 2, and require the check in branch protection.

WHAT IT TESTS: Whether you can bridge test instrumentation, coverage platforms, and repository controls into an automated gate. ANSWER OUTLINE: First, generate coverage in CI with pytest-cov or jest and upload via the Codecov CLI. Second, configure a project status check in codecov.yml with target auto and threshold 2 to allow a 2% drop. Third, set the status check as required in GitHub branch protection to block merges on failure.

Read the original → docs.codecov.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

How would you block merges when PR coverage drops 2%? · Tezvyn