@supatest/cypress-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,44 @@
1
+
2
+ ## Development
3
+
4
+ ### Running Tests
5
+
6
+ **Integration Tests:**
7
+ ```bash
8
+ pnpm test:integration # Build reporter and run full E2E test suite
9
+ ```
10
+
11
+ This will:
12
+ 1. Build the reporter package (`pnpm build`)
13
+ 2. Run the Cypress test suite in `reporter-test-suites/cypress-saucedemo/`
14
+ 3. Verify data flows to your local API (requires API running on `http://localhost:9090`)
15
+
16
+ **Quick Development Loop:**
17
+ ```bash
18
+ # Terminal 1: Start local API
19
+ cd api && pnpm dev
20
+
21
+ # Terminal 2: Build reporter, run integration tests
22
+ cd cypress-reporter
23
+ pnpm test:integration
24
+ ```
25
+
26
+ ### Test Suite Configuration
27
+
28
+ The integration test suite uses `.env` configuration:
29
+
30
+ ```bash
31
+ # reporter-test-suites/cypress-saucedemo/.env
32
+ SUPATEST_API_URL=http://localhost:9090
33
+ SUPATEST_API_KEY=sk_test_...
34
+ SUPATEST_PROJECT_ID=proj_local_swaglabs
35
+ SUPATEST_DRY_RUN=false
36
+ ```
37
+
38
+ ### Verifying Integration Tests
39
+
40
+ After running `pnpm test:integration`, you should see:
41
+ - `[supatest] Run <run-id> started (X spec files)`
42
+ - `[supatest] Run <run-id> completed`
43
+
44
+ Check your local API dashboard at `http://localhost:3000` to see the test results.