mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +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',
|
'name' => 'dump_coverage',
|
||||||
'path' => '/api-tests/stop-coverage',
|
'path' => '/api-tests/stop-coverage',
|
||||||
'middleware' => middleware(static function () use (&$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
|
if ($coverage) { // @phpstan-ignore-line
|
||||||
$basePath = __DIR__ . '/../../build/coverage-api';
|
$basePath = __DIR__ . '/../../build/coverage-api';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue