puppeteer/test
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
..
assets Test: add tests to cover clicking checkbox (#1125) 2017-11-07 20:38:22 -08:00
golden test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
server [api] Implement page.authenticate method (#729) 2017-09-11 16:32:13 -07:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
frame-utils.js test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
golden-utils.js tests: drop jasmine test runner (#1519) 2017-12-07 16:37:22 -08:00
test.js test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00