Pular para o conteúdo principal

Tests should not be disabled

When a test fails due, for example, to infrastructure issues, you might want to ignore it temporarily. But without some kind of notation about why the test is being disabled, it may never be reactivated.

This rule raises an issue for each disabled test that does not have a notation about why it was disabled.

Noncompliant Code Example

-- %test(my test)
-- %disabled
procedure test;

Compliant Solution

-- %test(my test)
procedure test;

Exceptions

The rule doesn't raise an issue if there is a comment in the %disabled annotation.