summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/tests/testdata/compat/test_runner/cjs.out6
-rw-r--r--cli/tests/testdata/compat/test_runner/esm.out6
-rw-r--r--cli/tests/testdata/test/aggregate_error.out6
-rw-r--r--cli/tests/testdata/test/allow_none.out16
-rw-r--r--cli/tests/testdata/test/clear_timeout.out2
-rw-r--r--cli/tests/testdata/test/collect.out2
-rw-r--r--cli/tests/testdata/test/doc_only.out2
-rw-r--r--cli/tests/testdata/test/exit_sanitizer.out10
-rw-r--r--cli/tests/testdata/test/fail.out24
-rw-r--r--cli/tests/testdata/test/fail_fast.out6
-rw-r--r--cli/tests/testdata/test/filter.out6
-rw-r--r--cli/tests/testdata/test/finally_timeout.out6
-rw-r--r--cli/tests/testdata/test/ignore.out2
-rw-r--r--cli/tests/testdata/test/ignore_permissions.out2
-rw-r--r--cli/tests/testdata/test/interval.out2
-rw-r--r--cli/tests/testdata/test/load_unload.out2
-rw-r--r--cli/tests/testdata/test/meta.out2
-rw-r--r--cli/tests/testdata/test/no_prompt_by_default.out6
-rw-r--r--cli/tests/testdata/test/no_prompt_with_denied_perms.out6
-rw-r--r--cli/tests/testdata/test/only.out2
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_missing_details.out6
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.out8
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests_no_trace.out8
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_nexttick.out2
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_timeout_failure.out2
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_unstable.out6
-rw-r--r--cli/tests/testdata/test/overloads.out2
-rw-r--r--cli/tests/testdata/test/pass.out2
-rw-r--r--cli/tests/testdata/test/quiet.out2
-rw-r--r--cli/tests/testdata/test/resource_sanitizer.out6
-rw-r--r--cli/tests/testdata/test/shuffle.out6
-rw-r--r--cli/tests/testdata/test/steps/failing_steps.out10
-rw-r--r--cli/tests/testdata/test/steps/ignored_steps.out2
-rw-r--r--cli/tests/testdata/test/steps/invalid_usage.out16
-rw-r--r--cli/tests/testdata/test/steps/output_within.out2
-rw-r--r--cli/tests/testdata/test/steps/passing_steps.out2
-rw-r--r--cli/tests/testdata/test/text.out2
-rw-r--r--cli/tools/test.rs10
38 files changed, 107 insertions, 103 deletions
diff --git a/cli/tests/testdata/compat/test_runner/cjs.out b/cli/tests/testdata/compat/test_runner/cjs.out
index 722721166..7daf096db 100644
--- a/cli/tests/testdata/compat/test_runner/cjs.out
+++ b/cli/tests/testdata/compat/test_runner/cjs.out
@@ -1,10 +1,10 @@
-running 2 tests from compat/test_runner/cjs.js
+running 2 tests from ./compat/test_runner/cjs.js
Correct assertion ... ok ([WILDCARD])
Failed assertion ... FAILED ([WILDCARD])
failures:
-compat/test_runner/cjs.js > Failed assertion
+./compat/test_runner/cjs.js > Failed assertion
AssertionError: Values are not strictly equal:
@@ -20,7 +20,7 @@ AssertionError: Values are not strictly equal:
failures:
- compat/test_runner/cjs.js
+ ./compat/test_runner/cjs.js
Failed assertion
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/compat/test_runner/esm.out b/cli/tests/testdata/compat/test_runner/esm.out
index f135c993d..8b51609f2 100644
--- a/cli/tests/testdata/compat/test_runner/esm.out
+++ b/cli/tests/testdata/compat/test_runner/esm.out
@@ -1,10 +1,10 @@
-running 2 tests from compat/test_runner/esm.mjs
+running 2 tests from ./compat/test_runner/esm.mjs
Correct assertion ... ok ([WILDCARD])
Failed assertion ... FAILED ([WILDCARD])
failures:
-compat/test_runner/esm.mjs > Failed assertion
+./compat/test_runner/esm.mjs > Failed assertion
AssertionError: Values are not strictly equal:
@@ -20,7 +20,7 @@ AssertionError: Values are not strictly equal:
failures:
- compat/test_runner/esm.mjs
+ ./compat/test_runner/esm.mjs
Failed assertion
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/aggregate_error.out b/cli/tests/testdata/test/aggregate_error.out
index 35349e67c..5c4c9b392 100644
--- a/cli/tests/testdata/test/aggregate_error.out
+++ b/cli/tests/testdata/test/aggregate_error.out
@@ -1,9 +1,9 @@
-running 1 test from test/aggregate_error.ts
+running 1 test from ./test/aggregate_error.ts
aggregate ... FAILED ([WILDCARD])
failures:
-test/aggregate_error.ts > aggregate
+./test/aggregate_error.ts > aggregate
AggregateError
Error: Error 1
at [WILDCARD]/testdata/test/aggregate_error.ts:2:18
@@ -16,7 +16,7 @@ AggregateError
failures:
- test/aggregate_error.ts
+ ./test/aggregate_error.ts
aggregate
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/allow_none.out b/cli/tests/testdata/test/allow_none.out
index 1310e2689..ea5157cf2 100644
--- a/cli/tests/testdata/test/allow_none.out
+++ b/cli/tests/testdata/test/allow_none.out
@@ -10,37 +10,37 @@ hrtime ... FAILED [WILDCARD]
failures:
-test/allow_none.ts > read
+./test/allow_none.ts > read
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
-test/allow_none.ts > write
+./test/allow_none.ts > write
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
-test/allow_none.ts > net
+./test/allow_none.ts > net
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
-test/allow_none.ts > env
+./test/allow_none.ts > env
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
-test/allow_none.ts > run
+./test/allow_none.ts > run
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
-test/allow_none.ts > ffi
+./test/allow_none.ts > ffi
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
-test/allow_none.ts > hrtime
+./test/allow_none.ts > hrtime
PermissionDenied: Can't escalate parent thread permissions
[WILDCARD]
failures:
- test/allow_none.ts
+ ./test/allow_none.ts
read
write
net
diff --git a/cli/tests/testdata/test/clear_timeout.out b/cli/tests/testdata/test/clear_timeout.out
index 3678baea0..c9aa1aaed 100644
--- a/cli/tests/testdata/test/clear_timeout.out
+++ b/cli/tests/testdata/test/clear_timeout.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/clear_timeout.ts
-running 3 tests from test/clear_timeout.ts
+running 3 tests from ./test/clear_timeout.ts
test 1 ... ok ([WILDCARD])
test 2 ... ok ([WILDCARD])
test 3 ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/collect.out b/cli/tests/testdata/test/collect.out
index ef298021e..2c672e118 100644
--- a/cli/tests/testdata/test/collect.out
+++ b/cli/tests/testdata/test/collect.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/collect/test.ts
-running 0 tests from test/collect/test.ts
+running 0 tests from ./test/collect/test.ts
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/doc_only.out b/cli/tests/testdata/test/doc_only.out
index 34babd1aa..be38e4a63 100644
--- a/cli/tests/testdata/test/doc_only.out
+++ b/cli/tests/testdata/test/doc_only.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/doc_only/mod.ts$2-5.ts
-running 0 tests from test/doc_only/mod.ts
+running 0 tests from ./test/doc_only/mod.ts
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/exit_sanitizer.out b/cli/tests/testdata/test/exit_sanitizer.out
index c714e8b4d..a0a659cb6 100644
--- a/cli/tests/testdata/test/exit_sanitizer.out
+++ b/cli/tests/testdata/test/exit_sanitizer.out
@@ -1,12 +1,12 @@
Check [WILDCARD]/test/exit_sanitizer.ts
-running 3 tests from test/exit_sanitizer.ts
+running 3 tests from ./test/exit_sanitizer.ts
exit(0) ... FAILED ([WILDCARD])
exit(1) ... FAILED ([WILDCARD])
exit(2) ... FAILED ([WILDCARD])
failures:
-test/exit_sanitizer.ts > exit(0)
+./test/exit_sanitizer.ts > exit(0)
AssertionError: Test case attempted to exit with exit code: 0
Deno.exit(0);
^
@@ -14,7 +14,7 @@ AssertionError: Test case attempted to exit with exit code: 0
at [WILDCARD]/test/exit_sanitizer.ts:2:8
at [WILDCARD]
-test/exit_sanitizer.ts > exit(1)
+./test/exit_sanitizer.ts > exit(1)
AssertionError: Test case attempted to exit with exit code: 1
Deno.exit(1);
^
@@ -22,7 +22,7 @@ AssertionError: Test case attempted to exit with exit code: 1
at [WILDCARD]/test/exit_sanitizer.ts:6:8
at [WILDCARD]
-test/exit_sanitizer.ts > exit(2)
+./test/exit_sanitizer.ts > exit(2)
AssertionError: Test case attempted to exit with exit code: 2
Deno.exit(2);
^
@@ -32,7 +32,7 @@ AssertionError: Test case attempted to exit with exit code: 2
failures:
- test/exit_sanitizer.ts
+ ./test/exit_sanitizer.ts
exit(0)
exit(1)
exit(2)
diff --git a/cli/tests/testdata/test/fail.out b/cli/tests/testdata/test/fail.out
index bac66c9bd..ba96ef7e2 100644
--- a/cli/tests/testdata/test/fail.out
+++ b/cli/tests/testdata/test/fail.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/fail.ts
-running 10 tests from test/fail.ts
+running 10 tests from ./test/fail.ts
test 0 ... FAILED ([WILDCARD])
test 1 ... FAILED ([WILDCARD])
test 2 ... FAILED ([WILDCARD])
@@ -13,70 +13,70 @@ test 9 ... FAILED ([WILDCARD])
failures:
-test/fail.ts > test 0
+./test/fail.ts > test 0
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:2:9
at [WILDCARD]
-test/fail.ts > test 1
+./test/fail.ts > test 1
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:5:9
at [WILDCARD]
-test/fail.ts > test 2
+./test/fail.ts > test 2
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:8:9
at [WILDCARD]
-test/fail.ts > test 3
+./test/fail.ts > test 3
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:11:9
at [WILDCARD]
-test/fail.ts > test 4
+./test/fail.ts > test 4
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:14:9
at [WILDCARD]
-test/fail.ts > test 5
+./test/fail.ts > test 5
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:17:9
at [WILDCARD]
-test/fail.ts > test 6
+./test/fail.ts > test 6
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:20:9
at [WILDCARD]
-test/fail.ts > test 7
+./test/fail.ts > test 7
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:23:9
at [WILDCARD]
-test/fail.ts > test 8
+./test/fail.ts > test 8
Error
throw new Error();
^
at [WILDCARD]/test/fail.ts:26:9
at [WILDCARD]
-test/fail.ts > test 9
+./test/fail.ts > test 9
Error
throw new Error();
^
@@ -85,7 +85,7 @@ Error
failures:
- test/fail.ts
+ ./test/fail.ts
test 0
test 1
test 2
diff --git a/cli/tests/testdata/test/fail_fast.out b/cli/tests/testdata/test/fail_fast.out
index e9adef329..b13f5f677 100644
--- a/cli/tests/testdata/test/fail_fast.out
+++ b/cli/tests/testdata/test/fail_fast.out
@@ -1,10 +1,10 @@
Check [WILDCARD]/test/fail_fast.ts
-running 10 tests from test/fail_fast.ts
+running 10 tests from ./test/fail_fast.ts
test 1 ... FAILED ([WILDCARD])
failures:
-test/fail_fast.ts > test 1
+./test/fail_fast.ts > test 1
Error
throw new Error();
^
@@ -13,7 +13,7 @@ Error
failures:
- test/fail_fast.ts
+ ./test/fail_fast.ts
test 1
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/filter.out b/cli/tests/testdata/test/filter.out
index 88196b6e0..57788a051 100644
--- a/cli/tests/testdata/test/filter.out
+++ b/cli/tests/testdata/test/filter.out
@@ -1,11 +1,11 @@
Check [WILDCARD]/test/filter/a_test.ts
Check [WILDCARD]/test/filter/b_test.ts
Check [WILDCARD]/test/filter/c_test.ts
-running 1 test from test/filter/a_test.ts
+running 1 test from ./test/filter/a_test.ts
foo ... ok ([WILDCARD])
-running 1 test from test/filter/b_test.ts
+running 1 test from ./test/filter/b_test.ts
foo ... ok ([WILDCARD])
-running 1 test from test/filter/c_test.ts
+running 1 test from ./test/filter/c_test.ts
foo ... ok ([WILDCARD])
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 6 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/finally_timeout.out b/cli/tests/testdata/test/finally_timeout.out
index 8de59acfd..04a1c2775 100644
--- a/cli/tests/testdata/test/finally_timeout.out
+++ b/cli/tests/testdata/test/finally_timeout.out
@@ -1,11 +1,11 @@
Check [WILDCARD]/test/finally_timeout.ts
-running 2 tests from test/finally_timeout.ts
+running 2 tests from ./test/finally_timeout.ts
error ... FAILED ([WILDCARD])
success ... ok ([WILDCARD])
failures:
-test/finally_timeout.ts > error
+./test/finally_timeout.ts > error
Error: fail
throw new Error("fail");
^
@@ -14,7 +14,7 @@ Error: fail
failures:
- test/finally_timeout.ts
+ ./test/finally_timeout.ts
error
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/ignore.out b/cli/tests/testdata/test/ignore.out
index 44c8b657d..c6ee1743d 100644
--- a/cli/tests/testdata/test/ignore.out
+++ b/cli/tests/testdata/test/ignore.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/ignore.ts
-running 10 tests from test/ignore.ts
+running 10 tests from ./test/ignore.ts
test 0 ... ignored ([WILDCARD])
test 1 ... ignored ([WILDCARD])
test 2 ... ignored ([WILDCARD])
diff --git a/cli/tests/testdata/test/ignore_permissions.out b/cli/tests/testdata/test/ignore_permissions.out
index 8f00a5b14..7457cf65b 100644
--- a/cli/tests/testdata/test/ignore_permissions.out
+++ b/cli/tests/testdata/test/ignore_permissions.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/ignore_permissions.ts
-running 1 test from test/ignore_permissions.ts
+running 1 test from ./test/ignore_permissions.ts
ignore ... ignored ([WILDCARD])
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/interval.out b/cli/tests/testdata/test/interval.out
index de5f2adad..92fd7d570 100644
--- a/cli/tests/testdata/test/interval.out
+++ b/cli/tests/testdata/test/interval.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/interval.ts
-running 0 tests from test/interval.ts
+running 0 tests from ./test/interval.ts
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/load_unload.out b/cli/tests/testdata/test/load_unload.out
index b2e14bb7f..ba9a1f5f9 100644
--- a/cli/tests/testdata/test/load_unload.out
+++ b/cli/tests/testdata/test/load_unload.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/load_unload.ts
-running 1 test from test/load_unload.ts
+running 1 test from ./test/load_unload.ts
test ... ok ([WILDCARD])
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/meta.out b/cli/tests/testdata/test/meta.out
index 6afb3bc0e..3fefa4265 100644
--- a/cli/tests/testdata/test/meta.out
+++ b/cli/tests/testdata/test/meta.out
@@ -1,7 +1,7 @@
Check [WILDCARD]/test/meta.ts
import.meta.main: false
import.meta.url: [WILDCARD]/test/meta.ts
-running 0 tests from test/meta.ts
+running 0 tests from ./test/meta.ts
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/no_prompt_by_default.out b/cli/tests/testdata/test/no_prompt_by_default.out
index 28b073777..705aca689 100644
--- a/cli/tests/testdata/test/no_prompt_by_default.out
+++ b/cli/tests/testdata/test/no_prompt_by_default.out
@@ -1,16 +1,16 @@
Check [WILDCARD]/no_prompt_by_default.ts
-running 1 test from test/no_prompt_by_default.ts
+running 1 test from ./test/no_prompt_by_default.ts
no prompt ... FAILED ([WILDCARD]ms)
failures:
-test/no_prompt_by_default.ts > no prompt
+./test/no_prompt_by_default.ts > no prompt
PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
[WILDCARD]
failures:
- test/no_prompt_by_default.ts
+ ./test/no_prompt_by_default.ts
no prompt
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]ms)
diff --git a/cli/tests/testdata/test/no_prompt_with_denied_perms.out b/cli/tests/testdata/test/no_prompt_with_denied_perms.out
index 7551726df..d80fb304c 100644
--- a/cli/tests/testdata/test/no_prompt_with_denied_perms.out
+++ b/cli/tests/testdata/test/no_prompt_with_denied_perms.out
@@ -1,16 +1,16 @@
Check [WILDCARD]/no_prompt_with_denied_perms.ts
-running 1 test from test/no_prompt_with_denied_perms.ts
+running 1 test from ./test/no_prompt_with_denied_perms.ts
no prompt ... FAILED ([WILDCARD]ms)
failures:
-test/no_prompt_with_denied_perms.ts > no prompt
+./test/no_prompt_with_denied_perms.ts > no prompt
PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
[WILDCARD]
failures:
- test/no_prompt_with_denied_perms.ts
+ ./test/no_prompt_with_denied_perms.ts
no prompt
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]ms)
diff --git a/cli/tests/testdata/test/only.out b/cli/tests/testdata/test/only.out
index 0003fb8c4..eaa71b2d0 100644
--- a/cli/tests/testdata/test/only.out
+++ b/cli/tests/testdata/test/only.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/only.ts
-running 1 test from test/only.ts
+running 1 test from ./test/only.ts
only ... ok ([WILDCARD])
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/ops_sanitizer_missing_details.out b/cli/tests/testdata/test/ops_sanitizer_missing_details.out
index 68c8c387a..88f6f04b2 100644
--- a/cli/tests/testdata/test/ops_sanitizer_missing_details.out
+++ b/cli/tests/testdata/test/ops_sanitizer_missing_details.out
@@ -1,10 +1,10 @@
Check [WILDCARD]test/ops_sanitizer_missing_details.ts
-running 1 test from test/ops_sanitizer_missing_details.ts
+running 1 test from ./test/ops_sanitizer_missing_details.ts
test 1 ... FAILED [WILDCARD]
failures:
-test/ops_sanitizer_missing_details.ts > test 1
+./test/ops_sanitizer_missing_details.ts > test 1
Test case is leaking async ops.
- 1 async operation to op_write was started in this test, but never completed.
@@ -13,7 +13,7 @@ To get more details where ops were leaked, run again with --trace-ops flag.
failures:
- test/ops_sanitizer_missing_details.ts
+ ./test/ops_sanitizer_missing_details.ts
test 1
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD]
diff --git a/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.out b/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.out
index e6004f7d2..222d22162 100644
--- a/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.out
+++ b/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.out
@@ -1,11 +1,11 @@
Check [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
-running 2 tests from test/ops_sanitizer_multiple_timeout_tests.ts
+running 2 tests from ./test/ops_sanitizer_multiple_timeout_tests.ts
test 1 ... FAILED ([WILDCARD])
test 2 ... FAILED ([WILDCARD])
failures:
-test/ops_sanitizer_multiple_timeout_tests.ts > test 1
+./test/ops_sanitizer_multiple_timeout_tests.ts > test 1
Test case is leaking async ops.
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operations were started here:
@@ -21,7 +21,7 @@ Test case is leaking async ops.
at [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:8:27
at [WILDCARD]
-test/ops_sanitizer_multiple_timeout_tests.ts > test 2
+./test/ops_sanitizer_multiple_timeout_tests.ts > test 2
Test case is leaking async ops.
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operations were started here:
@@ -39,7 +39,7 @@ Test case is leaking async ops.
failures:
- test/ops_sanitizer_multiple_timeout_tests.ts
+ ./test/ops_sanitizer_multiple_timeout_tests.ts
test 1
test 2
diff --git a/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests_no_trace.out b/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests_no_trace.out
index 61b210337..10758fba6 100644
--- a/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests_no_trace.out
+++ b/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests_no_trace.out
@@ -1,18 +1,18 @@
Check [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
-running 2 tests from test/ops_sanitizer_multiple_timeout_tests.ts
+running 2 tests from ./test/ops_sanitizer_multiple_timeout_tests.ts
test 1 ... FAILED ([WILDCARD])
test 2 ... FAILED ([WILDCARD])
failures:
-test/ops_sanitizer_multiple_timeout_tests.ts > test 1
+./test/ops_sanitizer_multiple_timeout_tests.ts > test 1
Test case is leaking async ops.
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call.
To get more details where ops were leaked, run again with --trace-ops flag.
-test/ops_sanitizer_multiple_timeout_tests.ts > test 2
+./test/ops_sanitizer_multiple_timeout_tests.ts > test 2
Test case is leaking async ops.
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call.
@@ -21,7 +21,7 @@ To get more details where ops were leaked, run again with --trace-ops flag.
failures:
- test/ops_sanitizer_multiple_timeout_tests.ts
+ ./test/ops_sanitizer_multiple_timeout_tests.ts
test 1
test 2
diff --git a/cli/tests/testdata/test/ops_sanitizer_nexttick.out b/cli/tests/testdata/test/ops_sanitizer_nexttick.out
index 767f068c4..331e55306 100644
--- a/cli/tests/testdata/test/ops_sanitizer_nexttick.out
+++ b/cli/tests/testdata/test/ops_sanitizer_nexttick.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/testdata/test/ops_sanitizer_nexttick.ts
-running 2 tests from test/ops_sanitizer_nexttick.ts
+running 2 tests from ./test/ops_sanitizer_nexttick.ts
test 1 ... ok ([WILDCARD])
test 2 ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out b/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out
index bb9187435..a77290d18 100644
--- a/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out
+++ b/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/testdata/test/ops_sanitizer_timeout_failure.ts
-running 1 test from test/ops_sanitizer_timeout_failure.ts
+running 1 test from ./test/ops_sanitizer_timeout_failure.ts
wait ... ok ([WILDCARD])
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/ops_sanitizer_unstable.out b/cli/tests/testdata/test/ops_sanitizer_unstable.out
index b6a45cb20..71fc12191 100644
--- a/cli/tests/testdata/test/ops_sanitizer_unstable.out
+++ b/cli/tests/testdata/test/ops_sanitizer_unstable.out
@@ -1,11 +1,11 @@
Check [WILDCARD]/testdata/test/ops_sanitizer_unstable.ts
-running 2 tests from test/ops_sanitizer_unstable.ts
+running 2 tests from ./test/ops_sanitizer_unstable.ts
no-op ... ok ([WILDCARD])
leak interval ... FAILED ([WILDCARD])
failures:
-test/ops_sanitizer_unstable.ts > leak interval
+./test/ops_sanitizer_unstable.ts > leak interval
Test case is leaking async ops.
- 1 async operation to sleep for a duration was started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operation was started here:
@@ -16,7 +16,7 @@ Test case is leaking async ops.
failures:
- test/ops_sanitizer_unstable.ts
+ ./test/ops_sanitizer_unstable.ts
leak interval
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/overloads.out b/cli/tests/testdata/test/overloads.out
index ddf4f0bb5..b2bf57fbd 100644
--- a/cli/tests/testdata/test/overloads.out
+++ b/cli/tests/testdata/test/overloads.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/overloads.ts
-running 6 tests from test/overloads.ts
+running 6 tests from ./test/overloads.ts
test0 ... ok ([WILDCARD])
test1 ... ok ([WILDCARD])
test2 ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/pass.out b/cli/tests/testdata/test/pass.out
index c0e1c3384..bb76e083f 100644
--- a/cli/tests/testdata/test/pass.out
+++ b/cli/tests/testdata/test/pass.out
@@ -1,5 +1,5 @@
Check [WILDCARD]/test/pass.ts
-running 10 tests from test/pass.ts
+running 10 tests from ./test/pass.ts
test 0 ... ok ([WILDCARD])
test 1 ... ok ([WILDCARD])
test 2 ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/quiet.out b/cli/tests/testdata/test/quiet.out
index d5828fb63..3ef8f5251 100644
--- a/cli/tests/testdata/test/quiet.out
+++ b/cli/tests/testdata/test/quiet.out
@@ -1,4 +1,4 @@
-running 4 tests from test/quiet.ts
+running 4 tests from ./test/quiet.ts
console.log ... ok ([WILDCARD])
console.error ... ok ([WILDCARD])
console.info ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/resource_sanitizer.out b/cli/tests/testdata/test/resource_sanitizer.out
index 55ee74506..847fe9606 100644
--- a/cli/tests/testdata/test/resource_sanitizer.out
+++ b/cli/tests/testdata/test/resource_sanitizer.out
@@ -1,10 +1,10 @@
Check [WILDCARD]/test/resource_sanitizer.ts
-running 1 test from test/resource_sanitizer.ts
+running 1 test from ./test/resource_sanitizer.ts
leak ... FAILED ([WILDCARD])
failures:
-test/resource_sanitizer.ts > leak
+./test/resource_sanitizer.ts > leak
AssertionError: Test case is leaking 2 resources:
- The stdin pipe (rid 0) was opened before the test started, but was closed during the test. Do not close resources in a test that were not created during that test.
@@ -14,7 +14,7 @@ AssertionError: Test case is leaking 2 resources:
failures:
- test/resource_sanitizer.ts
+ ./test/resource_sanitizer.ts
leak
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/test/shuffle.out b/cli/tests/testdata/test/shuffle.out
index 4ac8525be..81c5a46e5 100644
--- a/cli/tests/testdata/test/shuffle.out
+++ b/cli/tests/testdata/test/shuffle.out
@@ -1,7 +1,7 @@
Check [WILDCARD]/test/shuffle/bar_test.ts
Check [WILDCARD]/test/shuffle/baz_test.ts
Check [WILDCARD]/test/shuffle/foo_test.ts
-running 10 tests from test/shuffle/foo_test.ts
+running 10 tests from ./test/shuffle/foo_test.ts
test 2 ... ok ([WILDCARD])
test 3 ... ok ([WILDCARD])
test 6 ... ok ([WILDCARD])
@@ -12,7 +12,7 @@ test 5 ... ok ([WILDCARD])
test 4 ... ok ([WILDCARD])
test 1 ... ok ([WILDCARD])
test 0 ... ok ([WILDCARD])
-running 10 tests from test/shuffle/baz_test.ts
+running 10 tests from ./test/shuffle/baz_test.ts
test 2 ... ok ([WILDCARD])
test 3 ... ok ([WILDCARD])
test 6 ... ok ([WILDCARD])
@@ -23,7 +23,7 @@ test 5 ... ok ([WILDCARD])
test 4 ... ok ([WILDCARD])
test 1 ... ok ([WILDCARD])
test 0 ... ok ([WILDCARD])
-running 10 tests from test/shuffle/bar_test.ts
+running 10 tests from ./test/shuffle/bar_test.ts
test 2 ... ok ([WILDCARD])
test 3 ... ok ([WILDCARD])
test 6 ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/steps/failing_steps.out b/cli/tests/testdata/test/steps/failing_steps.out
index 24e19a064..a5fd9d74d 100644
--- a/cli/tests/testdata/test/steps/failing_steps.out
+++ b/cli/tests/testdata/test/steps/failing_steps.out
@@ -1,5 +1,5 @@
[WILDCARD]
-running 3 tests from test/steps/failing_steps.ts
+running 3 tests from ./test/steps/failing_steps.ts
nested failure ...
step 1 ...
inner 1 ... FAILED ([WILDCARD])
@@ -35,17 +35,17 @@ FAILED ([WILDCARD])
failures:
-test/steps/failing_steps.ts > nested failure
+./test/steps/failing_steps.ts > nested failure
Error: 1 test step failed.
at runTest (deno:runtime/js/40_testing.js:[WILDCARD])
at async Object.runTests (deno:runtime/js/40_testing.js:[WILDCARD])
-test/steps/failing_steps.ts > multiple test step failures
+./test/steps/failing_steps.ts > multiple test step failures
Error: 2 test steps failed.
at runTest (deno:runtime/js/40_testing.js:[WILDCARD])
at async Object.runTests (deno:runtime/js/40_testing.js:[WILDCARD])
-test/steps/failing_steps.ts > failing step in failing test
+./test/steps/failing_steps.ts > failing step in failing test
Error: Fail test.
throw new Error("Fail test.");
^
@@ -54,7 +54,7 @@ Error: Fail test.
failures:
- test/steps/failing_steps.ts
+ ./test/steps/failing_steps.ts
nested failure
multiple test step failures
failing step in failing test
diff --git a/cli/tests/testdata/test/steps/ignored_steps.out b/cli/tests/testdata/test/steps/ignored_steps.out
index a045574bb..b89f4451f 100644
--- a/cli/tests/testdata/test/steps/ignored_steps.out
+++ b/cli/tests/testdata/test/steps/ignored_steps.out
@@ -1,5 +1,5 @@
[WILDCARD]
-running 1 test from test/steps/ignored_steps.ts
+running 1 test from ./test/steps/ignored_steps.ts
ignored step ...
step 1 ... ignored ([WILDCARD])
step 2 ... ok ([WILDCARD])
diff --git a/cli/tests/testdata/test/steps/invalid_usage.out b/cli/tests/testdata/test/steps/invalid_usage.out
index 833c3a74f..9107cb4e0 100644
--- a/cli/tests/testdata/test/steps/invalid_usage.out
+++ b/cli/tests/testdata/test/steps/invalid_usage.out
@@ -1,5 +1,5 @@
[WILDCARD]
-running 7 tests from test/steps/invalid_usage.ts
+running 7 tests from ./test/steps/invalid_usage.ts
capturing ...
some step ... ok ([WILDCARD])
FAILED ([WILDCARD])
@@ -75,7 +75,7 @@ FAILED ([WILDCARD])
failures:
-test/steps/invalid_usage.ts > capturing
+./test/steps/invalid_usage.ts > capturing
Error: Cannot run test step after parent scope has finished execution. Ensure any `.step(...)` calls are executed before their parent scope completes execution.
await capturedContext.step("next step", () => {});
^
@@ -83,35 +83,35 @@ Error: Cannot run test step after parent scope has finished execution. Ensure an
at [WILDCARD]/invalid_usage.ts:[WILDCARD]
at [WILDCARD]
-test/steps/invalid_usage.ts > top level missing await
+./test/steps/invalid_usage.ts > top level missing await
Error: There were still test steps running after the current scope finished execution. Ensure all steps are awaited (ex. `await t.step(...)`).
at postValidation [WILDCARD]
at testStepSanitizer ([WILDCARD])
[WILDCARD]
-test/steps/invalid_usage.ts > inner missing await
+./test/steps/invalid_usage.ts > inner missing await
Error: 1 test step failed.
at [WILDCARD]
-test/steps/invalid_usage.ts > parallel steps with sanitizers
+./test/steps/invalid_usage.ts > parallel steps with sanitizers
Error: There were still test steps running after the current scope finished execution. Ensure all steps are awaited (ex. `await t.step(...)`).
at postValidation [WILDCARD]
at testStepSanitizer ([WILDCARD])
[WILDCARD]
-test/steps/invalid_usage.ts > parallel steps when first has sanitizer
+./test/steps/invalid_usage.ts > parallel steps when first has sanitizer
Error: 1 test step failed.
at runTest ([WILDCARD])
at [WILDCARD]
-test/steps/invalid_usage.ts > parallel steps when second has sanitizer
+./test/steps/invalid_usage.ts > parallel steps when second has sanitizer
Error: 1 test step failed.
at runTest ([WILDCARD])
at [WILDCARD]
failures:
- test/steps/invalid_usage.ts
+ ./test/steps/invalid_usage.ts
capturing
top level missing await
inner missing await
diff --git a/cli/tests/testdata/test/steps/output_within.out b/cli/tests/testdata/test/steps/output_within.out
index b8610d903..e44843e29 100644
--- a/cli/tests/testdata/test/steps/output_within.out
+++ b/cli/tests/testdata/test/steps/output_within.out
@@ -1,5 +1,5 @@
[WILDCARD]
-running 1 test from test/steps/output_within.ts
+running 1 test from ./test/steps/output_within.ts
description ...
------- output -------
1
diff --git a/cli/tests/testdata/test/steps/passing_steps.out b/cli/tests/testdata/test/steps/passing_steps.out
index 4d876b7d5..e4ecbba42 100644
--- a/cli/tests/testdata/test/steps/passing_steps.out
+++ b/cli/tests/testdata/test/steps/passing_steps.out
@@ -1,5 +1,5 @@
[WILDCARD]
-running 5 tests from test/steps/passing_steps.ts
+running 5 tests from ./test/steps/passing_steps.ts
description ...
step 1 ...
inner 1 ... ok ([WILDCARD]ms)
diff --git a/cli/tests/testdata/test/text.out b/cli/tests/testdata/test/text.out
index 384bce42e..f4c3d29e0 100644
--- a/cli/tests/testdata/test/text.out
+++ b/cli/tests/testdata/test/text.out
@@ -1,4 +1,4 @@
-running 0 tests from test/text.md
+running 0 tests from ./test/text.md
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index e3c6507fe..96e0dd8c3 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -253,10 +253,14 @@ impl PrettyTestReporter {
fn to_relative_path_or_remote_url(&self, path_or_url: &str) -> String {
let url = Url::parse(path_or_url).unwrap();
if url.scheme() == "file" {
- self.cwd.make_relative(&url).unwrap()
- } else {
- path_or_url.to_string()
+ if let Some(mut r) = self.cwd.make_relative(&url) {
+ if !r.starts_with("../") {
+ r = format!("./{}", r);
+ }
+ return r;
+ }
}
+ path_or_url.to_string()
}
fn force_report_step_wait(&mut self, description: &TestStepDescription) {