Skip to content

Commit a42bddb

Browse files
Do not mark incomplete and skipped tests as risky when they do not have a @Covers annotation but are expected to have one
1 parent 477c74b commit a42bddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/TestResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ public function run(Test $test): void
776776
$risky = true;
777777
}
778778

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

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

0 commit comments

Comments
 (0)