@supatest/playwright-reporter 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @supatest/playwright-reporter (logging prototype)
2
+
3
+ Minimal Playwright reporter that serializes run/test/result/attachment metadata and logs the payload to stdout. API upload is not wired yet.
4
+
5
+ ## Install
6
+ ```bash
7
+ pnpm add -D @supatest/playwright-reporter
8
+ ```
9
+
10
+ ## Usage
11
+ ```ts
12
+ // playwright.config.ts
13
+ import { defineConfig } from '@playwright/test';
14
+
15
+ export default defineConfig({
16
+ reporter: [
17
+ ['@supatest/playwright-reporter', {
18
+ projectId: process.env.SUPATEST_PROJECT_ID, // optional metadata
19
+ outputFile: process.env.SUPATEST_REPORT_PATH // optional JSON output
20
+ }]
21
+ ]
22
+ });
23
+ ```
24
+
25
+ ## What it does now
26
+ - Collects run metadata and every test result (including attachments and steps where available).
27
+ - Prints a single JSON payload at the end of the run; optionally writes it to `outputFile`.
28
+ - Generates stable IDs per run/test/result using deterministic hashes.
29
+
30
+ ## Next steps (not implemented yet)
31
+ - Send payload and assets to Supatest ingestion APIs.
32
+ - Add signed-URL asset uploads and retry/backoff behavior.
33
+ - Add richer CI/Git metadata capture.