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

TestLocator returns non-unique tests, but Mutation didn't know that #1310

Merged
merged 5 commits into from Aug 25, 2020

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented Aug 24, 2020

TestLocator returns non-unique tests, and JUnitTestCaseSorter works around that; we have to do that in Mutation too.

This PR:

Should not be a problem to port this to master branch.

(AppVeyor failures were fixed by #1302 in master)

@sanmai sanmai changed the base branch from master to 0.17 August 24, 2020 12:34
@sanmai sanmai changed the base branch from 0.17 to master August 24, 2020 12:34
@sanmai sanmai marked this pull request as ready for review August 24, 2020 12:41
@sanmai sanmai mentioned this pull request Aug 24, 2020
@sanmai sanmai changed the title Attempt to fix #1304 TestLocator returns non-unique tests, but Mutation didn't know that Aug 24, 2020
Fixes infection#1304

TestLocator returns non-unique tests, and JUnitTestCaseSorter works around that; we have to do that too.
@sanmai sanmai changed the base branch from master to 0.17 August 24, 2020 13:03
@maks-rafalko maks-rafalko modified the milestones: 0.18.0, 0.17.0 Aug 25, 2020
Copy link
Member

@maks-rafalko maks-rafalko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sanmai for working on this issue.

As I understand, Travis' failures are due to min MSI

@maks-rafalko maks-rafalko merged commit d3d77a7 into infection:0.17 Aug 25, 2020
@maks-rafalko
Copy link
Member

Would you be able to port to master?

@sanmai
Copy link
Member Author

sanmai commented Aug 25, 2020

Sure!

sanmai added a commit to sanmai/infection that referenced this pull request Aug 25, 2020
…nfection#1310)

* TestLocator returns non-unique tests, but Mutation didn't know that

Fixes infection#1304

TestLocator returns non-unique tests, and JUnitTestCaseSorter works around that; we have to do that too.

* Extend test case to include summation

* Timings are per test suite, not per test, therefore we have to unique by test suite name

* Fix PHPStan warning

* Extract adding logic into JUnitTestCaseTimeAdder
@sanmai
Copy link
Member Author

sanmai commented Aug 25, 2020

Do you think you can do git cherry-pick d3d77a76 on the master? I'll be far qucker than a full PR.

maks-rafalko pushed a commit that referenced this pull request Aug 25, 2020
…1310)

* TestLocator returns non-unique tests, but Mutation didn't know that

Fixes #1304

TestLocator returns non-unique tests, and JUnitTestCaseSorter works around that; we have to do that too.

* Extend test case to include summation

* Timings are per test suite, not per test, therefore we have to unique by test suite name

* Fix PHPStan warning

* Extract adding logic into JUnitTestCaseTimeAdder
@maks-rafalko
Copy link
Member

Done, thanks!

@sanmai sanmai deleted the pr/2020-08/timeout-skipped branch August 25, 2020 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with "Skipped"
2 participants