diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-03 00:49:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 10:19:42 +0530 |
| commit | 3e98ea4e69732d8a659ca0ca61747fe3887ab673 (patch) | |
| tree | 7cf753a822c6858ebd519d7d7774234c965af801 /tests/specs/jsr/no_module_graph | |
| parent | b7945a218ee193f6730b4b459e5ab28d13b1f040 (diff) | |
chore(tests/specs): ability to have sub tests in file (#23667)
Allows writing named sub-tests. These are:
1. Filterable on the command line via `cargo test ...`
2. Run in parallel
3. Use a fresh temp and deno dir for each test (unlike steps)
Diffstat (limited to 'tests/specs/jsr/no_module_graph')
| -rw-r--r-- | tests/specs/jsr/no_module_graph/__test__.jsonc | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/tests/specs/jsr/no_module_graph/__test__.jsonc b/tests/specs/jsr/no_module_graph/__test__.jsonc index 6c89ccb54..e7428c16a 100644 --- a/tests/specs/jsr/no_module_graph/__test__.jsonc +++ b/tests/specs/jsr/no_module_graph/__test__.jsonc @@ -1,13 +1,16 @@ { - "steps": [{ - "args": "run main.ts", - "output": "main.out" - }, { - "cleanDenoDir": true, - "args": "info main.ts", - "output": "main_info.out" - }, { - "args": "run --quiet multiple.ts", - "output": "multiple.out" - }] + "tests": { + "single": { + "args": "run main.ts", + "output": "main.out" + }, + "single_info": { + "args": "info main.ts", + "output": "main_info.out" + }, + "multiple": { + "args": "run --quiet multiple.ts", + "output": "multiple.out" + } + } } |
