1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/tests/testdata/test
Matt Mastracci b6e44f91ad
fix(cli): ensure that pre- and post-test output is flushed at the appropriate times (#22611)
Some `deno_std` tests were failing to print output that was resolved
after the last test finished. In addition, output printed before tests
began would sometimes appear above the "running X tests ..." line, and
sometimes below it depending on timing.

We now guarantee that all output is flushed before and after tests run,
making the output consistent.

Pre-test and post-test output are captured in `------ pre-test output
------` and `------ post-test output ------` blocks to differentiate
them from the regular output blocks.

Here's an example of a test (that is much noisier than normal, but an
example of what the output will look like):

```
Check ./load_unload.ts
------- pre-test output -------
load
----- output end -----
running 1 test from ./load_unload.ts
test ...
------- output -------
test
----- output end -----
test ... ok ([WILDCARD])
------- post-test output -------
unload
----- output end -----
```
2024-02-28 22:12:21 +00:00
..
collect chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
doc_only chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
filter chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
glob chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
relative_pattern_dot_slash chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
sanitizer chore(cli): rename --trace-ops to --trace-leaks (#22598) 2024-02-28 09:12:43 -07:00
shuffle chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
steps chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
aggregate_error.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
aggregate_error.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
allow_all.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
allow_all.ts chore: move test_util/std to tests/util/std (#22402) 2024-02-13 09:22:49 -07:00
allow_none.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
allow_none.ts chore: move test_util/std to tests/util/std (#22402) 2024-02-13 09:22:49 -07:00
before_unload_prevent_default.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
before_unload_prevent_default.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
captured_output.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
captured_output.worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
check_local_by_default.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
check_local_by_default.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
check_local_by_default2.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
check_local_by_default2.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
clear_timeout.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
clear_timeout.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
collect.deprecated.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
collect.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
collect2.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
collect_with_malformed_config.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno.glob.json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_custom_jsx.json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
doc.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
doc.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
doc_only.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail_fast.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail_fast.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail_fast_other.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail_fast_with_val.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fail_fast_with_val.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
file_protocol.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
file_protocol.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
filter.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
filtered_out_only.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
filtered_out_only.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
finally_timeout.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
finally_timeout.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
hello_world.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
hello_world.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
hide_empty_suites.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
ignore.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
ignore.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
ignore_permissions.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
ignore_permissions.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
interval.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
interval.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
load_unload.out fix(cli): ensure that pre- and post-test output is flushed at the appropriate times (#22611) 2024-02-28 22:12:21 +00:00
load_unload.ts fix(cli): ensure that pre- and post-test output is flushed at the appropriate times (#22611) 2024-02-28 22:12:21 +00:00
markdown.md chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown_full_block_names.md chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown_full_block_names.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown_windows.md chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown_windows.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown_with_comment.md chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
markdown_with_comment.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
meta.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
meta.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_check.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_check.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_color.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_prompt_by_default.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_prompt_by_default.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_prompt_with_denied_perms.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_prompt_with_denied_perms.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_run.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_run.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
non_error_thrown.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
non_error_thrown.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
only.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
only.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
overloads.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
overloads.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
parallel_output.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
parallel_output.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
pass.junit.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
pass.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
pass.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
quiet.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
quiet.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
recursive_permissions_pledge.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
replace_timers.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
replace_timers.js.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
report_error.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
report_error.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
short-pass-jobs-flag-warning.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
short-pass.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
short-pass.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
shuffle.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
sigint_with_hanging_test.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
sigint_with_hanging_test.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
text.md chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
text.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
uncaught_errors.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
uncaught_errors_1.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
uncaught_errors_2.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
uncaught_errors_3.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
unhandled_rejection.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
unhandled_rejection.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
unresolved_promise.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
unresolved_promise.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00