Skip to content

Commit

Permalink
test: rework testrunner workers (#1296)
Browse files Browse the repository at this point in the history
This change introduces a TestWorker that can be in a certain state,
meaning it has run some beforeAll hooks of a certain test suite stack.

TestWorker can be created at any time, which allows for a number of features:
- don't run hooks for suites with no runnable tests;
- smarter test distribution (and possibility for variuos strategies);
- recovering from hook failures and test failure by creating a new worker;
- possible isolation between workers by running them in separate environments.
  • Loading branch information
dgozman committed Mar 10, 2020
1 parent a9b7bcf commit 0ce8efa
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 159 deletions.

0 comments on commit 0ce8efa

Please sign in to comment.