Skip to content

Parallelise unit tests with ParallelTestRunner - #499

Merged
Alexsp32 merged 4 commits into
mainfrom
parallel-tests
Aug 11, 2026
Merged

Parallelise unit tests with ParallelTestRunner#499
Alexsp32 merged 4 commits into
mainfrom
parallel-tests

Conversation

@Alexsp32

Copy link
Copy Markdown
Member

Instead of splitting unit tests into groups based on the ordering in runtests.jl, have multiple parallel workers execute every separate test file instead. This reduces setup overhead and hopefully should make things slightly faster.

Strategy for future unit tests.

  • When adding unit tests, make sure to add any new package dependencies to test/Project.toml, not the main Project.toml.
  • Unit tests should be as small as practical, as they will be run in parallel automatically.
  • This means no include() statements in test sets.
  • Any files in test/ will be read automatically, no need to add anything more to test/runtests.jl.

@htsnowden htsnowden left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks good to me. Should there be something added to the developer docs page to cover how to do tests

@Alexsp32
Alexsp32 merged commit 479ef7f into main Aug 11, 2026
2 of 4 checks passed
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.

2 participants