Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions cli/checkly-pw-test.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Define `checkly pw-test` specific options before the `--` separator:
| `--create-check` | - | Create a Checkly check from the Playwright test. |
| `--env, -e` | - | Env vars to be passed to the test run. Default: [] |
| `--env-file` | - | dotenv file path to be passed. For example `--env-file="./.env"` |
| `--installCommand` | - | Override the command used to install dependencies before running tests. |
| `--include, -i` | - | File patterns to include when bundling the test project (e.g., `"utils/**/*"`). Can be repeated. |
| `--install-command` | - | Override the command used to install dependencies before running tests. |
| `--location, -l` | - | The location to run the checks at. |
| `--private-location` | - | The private location to run checks at. |
| `--[no-]record` | - | Record test results in Checkly as a test session with full logs, traces and videos. |
Expand Down Expand Up @@ -149,15 +150,30 @@ npx checkly pw-test --env-file="./.env"

</ResponseField>

<ResponseField name="--installCommand" type="string">
<ResponseField name="--include, -i" type="string[]">

File patterns to include when bundling the test project. Use this to add files that aren't automatically detected as dependencies, such as fixtures, helpers, or assets referenced at runtime. Can be specified multiple times to include multiple patterns.

If not provided, falls back to the `checks.include` value in your `checkly.config`.

**Usage:**

```bash Terminal
npx checkly pw-test --include="utils/**/*"
npx checkly pw-test -i="fixtures/**/*" -i="data/*.json"
```

</ResponseField>

<ResponseField name="--install-command" type="string">

Override the command used to install dependencies before running tests. By default, Checkly runs `npm install --dev`. Use this to customize the install step, for example to skip lifecycle scripts or use a different package manager.

**Usage:**

```bash Terminal
npx checkly pw-test --installCommand='npm install --no-scripts'
npx checkly pw-test --installCommand='pnpm install --frozen-lockfile'
npx checkly pw-test --install-command='npm install --no-scripts'
npx checkly pw-test --install-command='pnpm install --frozen-lockfile'
```

</ResponseField>
Expand Down
2 changes: 1 addition & 1 deletion detect/testing/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ npx checkly pw-test --location="eu-west-1" -- --grep="@smoke"
Customize the dependency installation step for the cloud environment:

```bash Terminal
npx checkly pw-test --installCommand='npm install --no-scripts'
npx checkly pw-test --install-command='npm install --no-scripts'
```

Learn more in the [`checkly pw-test` CLI reference](/cli/checkly-pw-test).
Expand Down