|
|
5 years ago | |
|---|---|---|
| .. | ||
| README.md | 5 years ago | |
| check-coverage.js | 5 years ago | |
| clean-page.js | 5 years ago | |
| deterministic-injection.js | 5 years ago | |
| puppeteer.js | 5 years ago | |
Simplify code reviews with quick automated testing inside CI.
If you get an error in e2e test after PR and you sure that all is correct, just make a new screenshot to example. As a last resort add it to exception list or increase timeouts.
# generate new screenshots for exact examples
npm run make-screenshot <example1_name> ... <exampleN_name>
# check exact examples
npm run test-e2e <example1_name> ... <exampleN_name>
# check all examples
npm run test-e2e
Merge only those commits that pass the tests, otherwise all next commits will also fail.
| Travis | Attempts |
|---|---|
| 61 from 362 failed, time=21:14 | networkidle0 timeout |
| 26 from 362 failed, time=16:22 | with rAF hook |
| 13=1+1+7+4 failed, time=4:26 | with render promise and parallelism |
| 4=0+0+2+2 failed, time=5:13 | with network tax and other settings |
| 4=0+0+2+2 failed, time=3:26 | with progressive attempts |
97% examples are covered with tests. Robusness in CI >97%.
webgl_loader_bvh, webgl_simple_gi, webgl_postprocessing_dof2, webgl_loader_texture_pvrtc, webgl_physics_volume. Some of them can be fixed with another pipeline.