mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 08:18:24 +03:00
Added comment to explain why API tests coverage is generated the way it is
This commit is contained in:
parent
6aebaa94af
commit
064fef5d8a
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ return [
|
|||
'name' => 'dump_coverage',
|
||||
'path' => '/api-tests/stop-coverage',
|
||||
'middleware' => middleware(static function () use (&$coverage) {
|
||||
// TODO I have tried moving this block to a listener so that it's invoked automatically,
|
||||
// but then the coverage is generated empty ¯\_(ツ)_/¯
|
||||
if ($coverage) { // @phpstan-ignore-line
|
||||
$basePath = __DIR__ . '/../../build/coverage-api';
|
||||
|
||||
|
|
Loading…
Reference in a new issue