Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Parallelizing tests through agents #13

Open
matkoch opened this issue Dec 9, 2016 · 1 comment
Open

Parallelizing tests through agents #13

matkoch opened this issue Dec 9, 2016 · 1 comment

Comments

@matkoch
Copy link
Owner

matkoch commented Dec 9, 2016

Parallelizing tests is usually done by passing only a set of all test assemblies, or filtering them by namespace. I propose a different approach invoked by:

TestFx.exe  --assemblies A.dll B.dll --agent-count 3 --agent-instance 1
TestFx.exe  --assemblies A.dll B.dll --agent-count 3 --agent-instance 2
TestFx.exe  --assemblies A.dll B.dll --agent-count 3 --agent-instance 3

Every invocation gets the full list of assemblies. Internally, all tests get sorted by name, optionally randomized using an external seed.

The execution is then defined by taking every (#AgentInstance - 1) + 3 * n test from all tests.

@matkoch
Copy link
Owner Author

matkoch commented Dec 9, 2016

Problem

Test suites with excessive setup/cleanup code. Separating them, will drastically increase execution time.

Possible solutions

  • Only include tests without test suite setup.
  • Opt-out by attribute

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

No branches or pull requests

1 participant