Skip to content

Run tests in random order - #687

Merged
ondrejmirtes merged 1 commit into
phpstan:2.0.xfrom
staabm:rand
Oct 6, 2025
Merged

Run tests in random order#687
ondrejmirtes merged 1 commit into
phpstan:2.0.xfrom
staabm:rand

Conversation

@staabm

@staabm staabm commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

preparation for infection

@staabm
staabm marked this pull request as ready for review October 5, 2025 06:38
@VincentLanglet

Copy link
Copy Markdown
Contributor

Out of curiosity, what's the benefit for infection ?

@staabm

staabm commented Oct 5, 2025

Copy link
Copy Markdown
Contributor Author

Infection optimzes performance by running only selected/filtered parts of the test-suite.

For this to work reliably its important that tests define dependencies properly.
Ordering and dependency problems of a test-suite surface best when running it in random order

@ondrejmirtes
ondrejmirtes merged commit 873c32c into phpstan:2.0.x Oct 6, 2025
35 of 37 checks passed
@ondrejmirtes

Copy link
Copy Markdown
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants