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/bench | |
| 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/bench')
| -rw-r--r-- | tests/specs/bench/collect/__test__.jsonc | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/tests/specs/bench/collect/__test__.jsonc b/tests/specs/bench/collect/__test__.jsonc index e5aabd82d..bc9e2a0b4 100644 --- a/tests/specs/bench/collect/__test__.jsonc +++ b/tests/specs/bench/collect/__test__.jsonc @@ -1,19 +1,21 @@ { - "steps": [{ - "args": "bench --ignore=collect/ignore collect", - "output": "collect.out" - }, { - "cleanDenoDir": true, - "args": "bench --config collect/deno.jsonc collect", - "output": "collect.out" - }, { - "cleanDenoDir": true, - "args": "bench --config collect/deno2.jsonc collect", - "output": "collect2.out" - }, { - "cleanDenoDir": true, - "args": "bench --config collect/deno.malformed.jsonc", - "exitCode": 1, - "output": "collect_with_malformed_config.out" - }] + "tests": { + "ignore": { + "args": "bench --ignore=collect/ignore collect", + "output": "collect.out" + }, + "config_sub_dir": { + "args": "bench --config collect/deno.jsonc collect", + "output": "collect.out" + }, + "config_sub_dir_with_exclude": { + "args": "bench --config collect/deno2.jsonc collect", + "output": "collect2.out" + }, + "config_malformed": { + "args": "bench --config collect/deno.malformed.jsonc", + "exitCode": 1, + "output": "collect_with_malformed_config.out" + } + } } |
