extract_puppeteer_screenshots

command
v0.0.0-...-cba77bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL