pwc
pwc command-line executable documentation
Last updated
Was this helpful?
pwc command-line executable documentation
Last updated
Was this helpful?
pwc
is a lightweight command-line executable that runs Playwright with a few pre-configured options.
pwc
allows providing Configuration options via CLI flags. Additionally, is passes down CLI flags to the underlying playwright
command.
We recommended using currents.config.ts
file. See .
Run all tests in the current directory:
Run only tests filtered by the tag @smoke
:
Run playwright tests and add tags "tagA", "tagB"
to the recorded run:
Set playwright
arguments and flags:
--ci-build-id
-k, --key
-p, --project-id
-t, --tag
--pwc-config <path>
--pwc-remove-title-tags
--pwc-disable-title-tags
--pwc-cancel-after-failures <number | false>
--pwc-debug [boolean | "remote" | "full"]
Enable collecting debug logs for the reporter (default: false).
true
will print the debug logs to stdout
remote
will upload the debug logs to Currents servers.
full
will print the logs to stdout and also upload to Currents.
Environment variable: CURRENTS_DEBUG=true | "remote" | "full"
. See Troubleshooting Playwright.
--pwc-output-file <path>
--pwc-coverage <project-name>
--pwc-coverage-dir <path>
-V, --version
Show package version
-h, --help
Show pwc
help
The unique identifier for a run. See
Your secret Record Key obtained from Currents. See .
The project ID for results reporting obtained from Currents. See .
Comma-separated tag(s) for recorded runs in Currents. See .
Path to currents config file currents.config.[ts|js]
. See .
Remove tags from test names in Currents, e.g. Test name @smoke
becomes Test name
in the dashboard (default: false). See .
Disable parsing tags from test title, e.g. Test name @smoke
would not have tag smoke
in the dashboard (default: false). See .
Abort the cloud run after the specified number of failed tests detected. Overrides the default Currents Project settings. See .
File path for run summary output in JSON format. See .
List of projects to collect coverage for, e.g. --pwc-coverage chromium --pwc-coverage firefox
. If no projects are specified, coverage will be collected for all projects. See .
Coverage reports directory path. See .