Skip to content

Commit 6565fa7

Browse files
Trigger warning when code coverage analysis is performed and no cache directory is configured
1 parent 468f86e commit 6565fa7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Runner/CodeCoverage.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ public function init(Configuration $configuration, CodeCoverageFilterRegistry $c
122122

123123
$this->deactivate();
124124
}
125+
126+
if (!$configuration->hasCoverageCacheDirectory()) {
127+
EventFacade::emitter()->testRunnerTriggeredPhpunitWarning(
128+
'No cache directory configured, result of static analysis for code coverage will not be cached',
129+
);
130+
}
125131
}
126132

127133
/**

0 commit comments

Comments
 (0)