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

Add pytest-randomly to randomize test execution #2192

Closed
matrss opened this issue Feb 9, 2024 · 1 comment · Fixed by #2287
Closed

Add pytest-randomly to randomize test execution #2192

matrss opened this issue Feb 9, 2024 · 1 comment · Fixed by #2287
Labels
Milestone

Comments

@matrss
Copy link
Collaborator

matrss commented Feb 9, 2024

Right now we run tests in normal order and in reverse order in CI. This finds some issues, but not all of them. Ideally we would run tests in a random order to avoid any implicit dependencies between tests.

Right now the test suite is not in a state in which this would be possible, AFAICT.

@matrss
Copy link
Collaborator Author

matrss commented Mar 19, 2024

I think the main issues with getting the test suite to pass in random order are the same that made problems on macOS in #2249:

  • Test_WMS.test_files_changed
  • Test_WMS.test_gallery
  • The entirety of test_sideview.py, test_topview.py and test_wms_control.py

This means that we should be able to use a random test order in the workflow that is introduced in that PR, without much additional effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant