a5db6d412c
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. |
||
---|---|---|
.. | ||
grid-cell-0.png | ||
grid-cell-1.png | ||
grid-cell-2.png | ||
grid-cell-3.png | ||
mock-binary-response.png | ||
nested-frames.txt | ||
reconnect-nested-frames.txt | ||
screenshot-clip-odd-size.png | ||
screenshot-clip-rect.png | ||
screenshot-element-bounding-box.png | ||
screenshot-element-padding-border.png | ||
screenshot-element-rotate.png | ||
screenshot-element-scrolled-into-view.png | ||
screenshot-grid-fullpage.png | ||
screenshot-offscreen-clip.png | ||
screenshot-sanity.png | ||
transparent.png |