You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,18 @@ cd test/e2e
9
9
pnpm install
10
10
```
11
11
12
+
## Environment variables
13
+
14
+
End-to-end runs require Cloudinary credentials in `process.env`. The `onPrepare` hook in `wdio.conf.ts` reads `E2E_CLOUD`, `E2E_API_KEY`, and `E2E_API_SECRET`, then writes `~/.cloudinary/environments.json` in the shape the extension expects (cloud name as the top-level key, with `apiKey` and `apiSecret`).
15
+
16
+
| Variable | Description |
17
+
|----------|-------------|
18
+
|`E2E_CLOUD`| Cloudinary cloud name |
19
+
|`E2E_API_KEY`| API key |
20
+
|`E2E_API_SECRET`| API secret |
21
+
22
+
**Local:** add a `test/e2e/.env` file (gitignored) such as:
23
+
12
24
## Running Tests
13
25
14
26
```bash
@@ -18,7 +30,7 @@ pnpm test:e2e
18
30
This will:
19
31
1. Download a VS Code binary (if not already cached in `.wdio-vscode-service/`)
20
32
2. Launch VS Code with the extension loaded
21
-
3. Run all specs in `test/specs/`
33
+
3. Run all specs in `specs/`
22
34
23
35
## Viewing Reports
24
36
@@ -35,8 +47,7 @@ test/e2e/
35
47
├── wdio.conf.ts # WebdriverIO configuration
36
48
├── tsconfig.json # TypeScript config for e2e tests
37
49
├── package.json # Dependencies (separate from root)
38
-
├── test/
39
-
│ └── specs/ # Test spec files
50
+
├── specs/ # Test spec files
40
51
├── src/
41
52
│ └── utils/ # Page object utilities
42
53
```
@@ -46,8 +57,8 @@ test/e2e/
46
57
Tests use [Mocha](https://mochajs.org/) as the test framework and the `wdio-vscode-service` page objects to interact with VS Code.
0 commit comments