Skip to main content
Identify test coverage cheats

Detect methods that have been introduced as an attempt to cheat test coverage.

Gabriele Gallo Stampino avatar
Written by Gabriele Gallo Stampino
Updated over 4 years ago

Rationale

Have good test coverage it's a best practice largely adopted to ensure your application works as expected, also in edge case conditions.

It's therefore important to detect tests created just to increase the coverage metrics and not to test the logics implemented in your code.

Scope

  • Apex

Did this answer your question?