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
Changes:
* Removed old fixtures as they arent used
* Restructured fixtures dir: it now has only a php folder
* Restructured tests to have one directory per domain
* Updated readme to explain domain-specific tests
// NOTE: you can use a full url instead of a path as well, in which case
122
-
// the wrapper will make sure the request is sent to the Edge target server
123
-
// if EDGE_SERVER is specified.
124
-
const res = await env.fetchApp(info, 'https://....', {headers: {...})
125
-
126
-
// You can also run custom wasmer CLI commands like this:
127
-
// This will throw an exception if the command fails.
128
-
const output = await env.runWasmerCommand({
129
-
args: [...],
130
-
// Use the app directory as the working directory.
131
-
cwd: info.dir
132
-
env: {...},
133
-
});
134
-
assertEquals(output.stdout, 'my stdout...');
135
-
assertEquals(output.stderr, 'my stderr');
136
-
});
137
-
```
63
+
### Test UATs and project structure
64
+
65
+
Each area of functionality is intended to have its own directory and pipeline step, correlating roughly with the [QA UATs](https://linear.app/wasmer/settings/teams/QA/templates).
66
+
This is to optimize each suite (allow failing fast) and to quickly highlight issue in pipeline, as well as reruns on periodic tests.
67
+
68
+
So, please place tests within the feature's respective domain.
69
+
Example: If additional functionality is added to app-jobs, either modify [the main job test file](./tests/job/job.test.ts), or write a new test file in the same directory.
70
+
71
+
If writing tests for a features within a new domain, create a new directory and be sure to add it to the [workflow](./.github/workflows/integration-test-workflow.yaml).
But if it feels radically different to other features (such as, Agentic Workloads vs php webserver), perhaps it's a new domain.
76
+
77
+
If you're unsure where to place a test, simply write the test as a new file and place it under `./tests/general` with a name describing the functionality (for example `volumes.test.ts`).
0 commit comments