Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PHPUnit 9.3+ schema when coverage tag exists #2

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

lcobucci
Copy link

This modifies the coverage report and JUnit logger creation to make Infection fully compatible with the newer PHPUnit schema.

More info: infection#1294

This modifies the coverage report and JUnit logger creation to make Infection fully compatible with the newer PHPUnit schema.

More info: infection#1294
@sanmai
Copy link
Owner

sanmai commented Aug 20, 2020

Let's go with you proposal. Thank you.

@sanmai sanmai merged commit 0786f14 into sanmai:pr/2020-08/phpunit93 Aug 20, 2020
sanmai pushed a commit that referenced this pull request Jan 3, 2021
* create mutators

* avaible only string param

* unit tests

* cs-fix

* mutatesNode rule

* coallesce on mutators

* regex only removes carret and dolar

* code format

* riddiculus pretty fix

* Add mutators to schema.json, add more tests, add psalm annotations, add support for all possible delimiters

* Add psalm issues to baseline because thecodingmachine/safe does not support psalm annotations yet

thecodingmachine/safe#141

* Add test with an unpacked array

* Simplify code by using ?? operator

Co-authored-by: bernard.van.der.esch <bernard.van.der.esch@orba.co>
Co-authored-by: Bernard van der Esch <b.vanderesch@gmail.com>
sanmai pushed a commit that referenced this pull request Sep 11, 2021
…andom ordering of the tests since we need them to be sorted (fastest - first) (infection#1547)

When Infection build Mutant's `phpunit.xml` file, we add `<file>` tags, sorted by tests execution time, so that the fastest tests runs first.

But when the original `phpunit.xml` contains `executionOrder="default"`, it was inherited to Mutant's `phpunit.xml` and broke the order, running the tests in a random order each time `infection` was executed.

This also explains why I got different execution time of Infection for the project with *functional* tests.

When Mutant is covered by 1000 functional tests, and tests are executed by random, it can be killed by the first test in run #1 and can be killed by 1000-th test in run #2, if the killing test is executed the last.

With this update, all the tests will be executed in the same orders (fastest - first) in all the infection runs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants