mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
244926e83c
This commit changes "deno test" to better denote user output coming from test cases. This is done by printing "---- output ----" and "---- output end ----" markers if an output is produced. The output from "console" and "Deno.core.print" is captured, as well as direct writes to "Deno.stdout" and "Deno.stderr". To achieve that new APIs were added to "deno_core" crate, that allow to replace an existing resource with a different one (while keeping resource ids intact). Resources for stdout and stderr are replaced by pipes. Co-authored-by: David Sherret <dsherret@gmail.com>
31 lines
503 B
Text
31 lines
503 B
Text
[WILDCARD]
|
|
running 1 test from test/steps/output_within.ts
|
|
description ...
|
|
------- output -------
|
|
1
|
|
----- output end -----
|
|
step 1 ...
|
|
------- output -------
|
|
2
|
|
----- output end -----
|
|
inner 1 ...
|
|
------- output -------
|
|
3
|
|
----- output end -----
|
|
ok ([WILDCARD]ms)
|
|
inner 2 ...
|
|
------- output -------
|
|
4
|
|
----- output end -----
|
|
ok ([WILDCARD]ms)
|
|
|
|
------- output -------
|
|
5
|
|
----- output end -----
|
|
ok ([WILDCARD]ms)
|
|
|
|
------- output -------
|
|
6
|
|
----- output end -----
|
|
ok ([WILDCARD]ms)
|
|
[WILDCARD]
|