puppeteer/utils
Andrey Lushnikov a5db6d412c
test: migrate test.js to support concurrent test execution (#1531)
This patch migrates tests so that they can be run concurrently.

- By default, tests still run in one thread.
- To run tests in 4 parallel threads, run node test/test.js -j 4 or npm run unit -- -j 4
- Environment variable PPTR_PARALLEL_TESTS could be set to override default parallelization

Every test gets passed in a state. State is set up in the beforeAll and beforeEach callbacks,
and should be teared down in the afterAll and afterEach callbacks.

By default, state has a parallelIndex variable initialized that defines the thread index that runs the execution.
2017-12-12 13:34:21 -08:00
..
doclint refactor: move ChromiumDownloader under lib/ (#1554) 2017-12-08 13:39:13 -08:00
node6-transform chore: generalize node6 transpilation (#1560) 2017-12-08 15:14:28 -08:00
testrunner test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
check_availability.js refactor: move ChromiumDownloader under lib/ (#1554) 2017-12-08 13:39:13 -08:00
ESTreeWalker.js Fix node6 support for Object.entries and URL object (#548) 2017-08-25 15:13:59 -07:00
fetch_devices.js Change let into const (#457) 2017-08-21 16:39:04 -07:00