mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(cli/tools/test): Prefix test module paths with "./" (#14301)
This commit is contained in:
parent
5f2d9a4a22
commit
bd6494d119
38 changed files with 107 additions and 103 deletions
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
6
cli/tests/testdata/test/aggregate_error.out
vendored
6
cli/tests/testdata/test/aggregate_error.out
vendored
|
@ -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])
|
||||
|
|
16
cli/tests/testdata/test/allow_none.out
vendored
16
cli/tests/testdata/test/allow_none.out
vendored
|
@ -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
|
||||
|
|
2
cli/tests/testdata/test/clear_timeout.out
vendored
2
cli/tests/testdata/test/clear_timeout.out
vendored
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/collect.out
vendored
2
cli/tests/testdata/test/collect.out
vendored
|
@ -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])
|
||||
|
||||
|
|
2
cli/tests/testdata/test/doc_only.out
vendored
2
cli/tests/testdata/test/doc_only.out
vendored
|
@ -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])
|
||||
|
||||
|
|
10
cli/tests/testdata/test/exit_sanitizer.out
vendored
10
cli/tests/testdata/test/exit_sanitizer.out
vendored
|
@ -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)
|
||||
|
|
24
cli/tests/testdata/test/fail.out
vendored
24
cli/tests/testdata/test/fail.out
vendored
|
@ -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
|
||||
|
|
6
cli/tests/testdata/test/fail_fast.out
vendored
6
cli/tests/testdata/test/fail_fast.out
vendored
|
@ -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])
|
||||
|
|
6
cli/tests/testdata/test/filter.out
vendored
6
cli/tests/testdata/test/filter.out
vendored
|
@ -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])
|
||||
|
|
6
cli/tests/testdata/test/finally_timeout.out
vendored
6
cli/tests/testdata/test/finally_timeout.out
vendored
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/ignore.out
vendored
2
cli/tests/testdata/test/ignore.out
vendored
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/interval.out
vendored
2
cli/tests/testdata/test/interval.out
vendored
|
@ -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])
|
||||
|
||||
|
|
2
cli/tests/testdata/test/load_unload.out
vendored
2
cli/tests/testdata/test/load_unload.out
vendored
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/meta.out
vendored
2
cli/tests/testdata/test/meta.out
vendored
|
@ -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])
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
2
cli/tests/testdata/test/only.out
vendored
2
cli/tests/testdata/test/only.out
vendored
|
@ -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])
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/overloads.out
vendored
2
cli/tests/testdata/test/overloads.out
vendored
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/pass.out
vendored
2
cli/tests/testdata/test/pass.out
vendored
|
@ -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])
|
||||
|
|
2
cli/tests/testdata/test/quiet.out
vendored
2
cli/tests/testdata/test/quiet.out
vendored
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
6
cli/tests/testdata/test/shuffle.out
vendored
6
cli/tests/testdata/test/shuffle.out
vendored
|
@ -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])
|
||||
|
|
10
cli/tests/testdata/test/steps/failing_steps.out
vendored
10
cli/tests/testdata/test/steps/failing_steps.out
vendored
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
16
cli/tests/testdata/test/steps/invalid_usage.out
vendored
16
cli/tests/testdata/test/steps/invalid_usage.out
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
2
cli/tests/testdata/test/text.out
vendored
2
cli/tests/testdata/test/text.out
vendored
|
@ -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])
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue