From 3e98ea4e69732d8a659ca0ca61747fe3887ab673 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 3 May 2024 00:49:42 -0400 Subject: 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) --- tests/specs/jsr/module_graph/__test__.jsonc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'tests/specs/jsr/module_graph') diff --git a/tests/specs/jsr/module_graph/__test__.jsonc b/tests/specs/jsr/module_graph/__test__.jsonc index 16b086e8b..dabed8700 100644 --- a/tests/specs/jsr/module_graph/__test__.jsonc +++ b/tests/specs/jsr/module_graph/__test__.jsonc @@ -1,10 +1,12 @@ { - "steps": [{ - "args": "run --log-level=debug main.ts", - "output": "main.out" - }, { - "cleanDenoDir": true, - "args": "info main.ts", - "output": "main_info.out" - }] + "tests": { + "run": { + "args": "run --log-level=debug main.ts", + "output": "main.out" + }, + "info": { + "args": "info main.ts", + "output": "main_info.out" + } + } } -- cgit v1.2.3