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

Support specific/custom test orders and a deterministic order in which test classes are executed. #1851

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

lauxjpn
Copy link
Collaborator

@lauxjpn lauxjpn commented Feb 27, 2024

If a file test/EFCore.MySql.FunctionalTests/TestResults/SpecificTestOrder.txt exists and contains lines, then those lines will be interpreted as fully qualified display names of tests and used to specify the order in which test cases should be executed.

This is helpful to replicate test failures, that only occur after certain other tests have previously run (so where the order matters).

The order is currently only applied within a test class, not on a inter test class basis.

The behavior can be enabled with msbuild property <SpecificTestOrder>true</SpecificTestOrder>


We also added a deterministic (alphabetical) order, in which test classes are executed (automatically used when msbuild property <FixedTestOrder>true</FixedTestOrder>.

@lauxjpn lauxjpn added this to the 9.0.0 milestone Feb 27, 2024
@lauxjpn lauxjpn self-assigned this Feb 27, 2024
@lauxjpn lauxjpn merged commit cdcaeac into PomeloFoundation:master Feb 27, 2024
21 checks passed
@lauxjpn lauxjpn deleted the feature/specific_test_order branch February 27, 2024 19:33
@lauxjpn lauxjpn modified the milestones: 9.0.0, 8.0.1 Mar 16, 2024
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.

1 participant