Skip to content

Commit

Permalink
Do not mark incomplete and skipped tests as risky when they do not ha…
Browse files Browse the repository at this point in the history
…ve a @Covers annotation but are expected to have one
  • Loading branch information
sebastianbergmann committed Jun 5, 2020
1 parent 477c74b commit a42bddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/TestResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ public function run(Test $test): void
$risky = true;
}

if ($this->forceCoversAnnotation) {
if ($this->forceCoversAnnotation && !$incomplete && !$skipped) {
$annotations = $test->getAnnotations();

if (!isset($annotations['class']['covers']) &&
Expand Down

0 comments on commit a42bddb

Please sign in to comment.