Skip to content

Commit

Permalink
Skip running infection via .laminas-ci.json, since it can't use `ph…
Browse files Browse the repository at this point in the history
…pdbg`

Fixes:

```
Error: ] Project tests must be in a passing state before running Infection.
         Infection runs the test suite in a RANDOM order. Make sure your tests
         do not have hidden dependencies.

         You can add these attributes to `phpunit.xml` to check it: <phpunit
         executionOrder="random" resolveDependencies="true" ...

         If you don't want to let Infection run tests in a random order, set the
         `executionOrder` to some value, for example <phpunit
         executionOrder="default"

         Check the executed command to identify the problem:
         '/usr/bin/phpdbg8.2' '-qrr' '/github/workspace/vendor/bin/phpunit'
         '--configuration'
         '/tmp/infection/phpunitConfiguration.initial.infection.xml'
         '--coverage-xml=/tmp/infection/coverage-xml'
         '--log-junit=/tmp/infection/junit.xml'
         PHPUnit reported an exit code of 1.
         Refer to the PHPUnit's output below:
         STDOUT:
         PHPUnit 10.5.41 by Sebastian Bergmann and contributors.

         Runtime:       PHP 8.2.24
         Configuration:
         /tmp/infection/phpunitConfiguration.initial.infection.xml
         Random Seed:   1737943321

         There was 1 PHPUnit test runner warning:

         1) No code coverage driver available

         No tests executed!
```
  • Loading branch information
Ocramius committed Jan 27, 2025
1 parent a07ee8f commit 4f305f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"exclude": [
{
"name": "Infection [8.1, locked]"
"name": "Infection [8.2, locked]"
}
]
}

0 comments on commit 4f305f3

Please sign in to comment.