Skip to content

Commit a0e619c

Browse files
authored
Playwright (#239)
1 parent 093600a commit a0e619c

File tree

9 files changed

+1061
-6
lines changed

9 files changed

+1061
-6
lines changed

docusaurus/docs/index.mdx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ pagination_prev: null
33
pagination_next: overview/index
44
---
55

6+
import Playwright from "@site/static/img/playwright.svg"
7+
import Vitest from "@site/static/img/vitest.svg"
68
import api from "@site/static/img/api.png";
9+
import cypress from "@site/static/img/cypress.jpg"
710
import javascript from "@site/static/img/javascript.png"
8-
import Vitest from "@site/static/img/vitest.svg"
911
import jest from "@site/static/img/jest.jpg"
10-
import cypress from "@site/static/img/cypress.jpg"
11-
import ruby from "@site/static/img/ruby.png"
1212
import knapsack from "@site/static/img/knapsack.png"
13+
import ruby from "@site/static/img/ruby.png"
1314
import troubleshooting from "@site/static/img/troubleshooting.png"
1415

1516
# Welcome
@@ -49,6 +50,11 @@ If you have questions, feel free to [contact us](https://knapsackpro.com/contact
4950
<div className="cell__image"><Vitest className="w-full h-auto center" /></div>
5051
<h2 className="cell__title">Vitest</h2>
5152
</a>
53+
54+
<a href="/playwright/guide/" className="cell">
55+
<div className="cell__image"><Playwright className="w-full h-auto center" /></div>
56+
<h2 className="cell__title">Playwright</h2>
57+
</a>
5258
</div>
5359

5460
Can't see your language/testing framework above? [Let us know](https://docs.google.com/forms/d/e/1FAIpQLSe7Z6k__VczmRMmXykjA5i2MVEA3nEJ90gbiIeCRjecWhPOig/viewform?hl=en).
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
pagination_next: null
3+
pagination_prev: null
4+
---
5+
6+
# Playwright Cookbook
7+
8+
## Run a subset of tests
9+
10+
To run a subset of your test suite you can use the `KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE` environment variable:
11+
12+
- [`KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE`](reference.md#knapsack_pro_test_file_list_source_file)
13+
14+
## Reporters
15+
16+
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`):
17+
18+
```bash
19+
npx @knapsack-pro/playwright --reporter=blob,@knapsack-pro/playwright/reporters/batch
20+
npx playwright merge-reports --reporter=list blob-report/
21+
```
22+
23+
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`).

0 commit comments

Comments
 (0)