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
12 changes: 9 additions & 3 deletions docusaurus/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ pagination_prev: null
pagination_next: overview/index
---

import Playwright from "@site/static/img/playwright.svg"
import Vitest from "@site/static/img/vitest.svg"
import api from "@site/static/img/api.png";
import cypress from "@site/static/img/cypress.jpg"
import javascript from "@site/static/img/javascript.png"
import Vitest from "@site/static/img/vitest.svg"
import jest from "@site/static/img/jest.jpg"
import cypress from "@site/static/img/cypress.jpg"
import ruby from "@site/static/img/ruby.png"
import knapsack from "@site/static/img/knapsack.png"
import ruby from "@site/static/img/ruby.png"
import troubleshooting from "@site/static/img/troubleshooting.png"

# Welcome
Expand Down Expand Up @@ -49,6 +50,11 @@ If you have questions, feel free to [contact us](https://knapsackpro.com/contact
<div className="cell__image"><Vitest className="w-full h-auto center" /></div>
<h2 className="cell__title">Vitest</h2>
</a>

<a href="/playwright/guide/" className="cell">
<div className="cell__image"><Playwright className="w-full h-auto center" /></div>
<h2 className="cell__title">Playwright</h2>
</a>
</div>

Can't see your language/testing framework above? [Let us know](https://docs.google.com/forms/d/e/1FAIpQLSe7Z6k__VczmRMmXykjA5i2MVEA3nEJ90gbiIeCRjecWhPOig/viewform?hl=en).
Expand Down
23 changes: 23 additions & 0 deletions docusaurus/docs/playwright/cookbook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
pagination_next: null
pagination_prev: null
---

# Playwright Cookbook

## Run a subset of tests

To run a subset of your test suite you can use the `KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE` environment variable:

- [`KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE`](reference.md#knapsack_pro_test_file_list_source_file)

## Reporters

Use the [blob reporter](https://playwright.dev/docs/test-reporters#blob-reporter) without specifying an `outputDir` or `outputFile`. Later, execute `playwright --merge-reports` to output any aggregated reports you need (e.g., `json`):

```bash
npx @knapsack-pro/playwright --reporter=blob,@knapsack-pro/playwright/reporters/batch
npx playwright merge-reports --reporter=list blob-report/
```

Knapsack Pro generates one blob file per batch of tests executed named as follows: `blob-report/report-[HASH].zip` (e.g., `blob-report/report-24ad5ce.zip`).
Loading