Documentation ¶
Overview ¶
extract_puppeteer_screenshots extracts Puppeteer screenshots into a user-specified directory.
Usage:
$ bazel run //:extract_puppeteer_screenshots -- --output_dir=<output directory>
Under Bazel, Puppeteer tests save screenshots inside $TEST_UNDECLARED_OUTPUTS_DIR, which is set by the "bazel test" command. Screenshots, and any other undeclared outputs of a test, can be found under //_bazel_testlogs bundled as a single .zip file per test target.
For example, if we run a Puppeteer test with "bazel test //my_app:puppeteer_test", then any screenshots will be found inside //_bazel_testlogs/my_app/puppeteer_test/test.outputs/outputs.zip.
See https://docs.bazel.build/versions/master/test-encyclopedia.html#initial-conditions to learn more about undeclared test outputs.
Click to show internal directories.
Click to hide internal directories.