Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
test: don't use --runInBand and improve execution performance #2005
For Bugs and Features; did you add new tests?
Motivation / Use-Case
Currently, the test's execution performance is too slow because we select serial execution.
In this pr, we can use parallel execution.
Set the number of ports of each test
The key is a file name and the value is the number of ports. We make it easy to change the number of ports flexibly.
We'll use many ports for parallel execution, so we have to make sure that all ports used at boot time are free.
const [port1, port2] = require('../ports-map')['file-name'];
NOTE: this pr targets #1996, not
@@ Coverage Diff @@ ## feature/refactor-tests #2005 +/- ## ====================================================== Coverage 92.4% 92.4% ====================================================== Files 28 28 Lines 1067 1067 Branches 324 324 ====================================================== Hits 986 986 Misses 77 77 Partials 4 4