From 6254bd41b72705fc5fba02f9006302dc0c85ea80 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Thu, 24 Sep 2020 02:12:24 +0800 Subject: fix(cli/coverage): print lines with no coverage to stdout (#7640) --- cli/tests/test_coverage.out | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/test_coverage.out b/cli/tests/test_coverage.out index 85e229881..f189a92ee 100644 --- a/cli/tests/test_coverage.out +++ b/cli/tests/test_coverage.out @@ -4,7 +4,24 @@ test returnsHiSuccess ... ok ([WILDCARD]) test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]) -test coverage: -file://[WILDCARD]/cli/tests/subdir/mod1.ts 57.143% -file://[WILDCARD]/cli/tests/subdir/subdir2/mod2.ts 50.000% -file://[WILDCARD]/cli/tests/subdir/print_hello.ts 50.000% +cover [WILDCARD]/cli/tests/subdir/mod1.ts ... 35.714% (5/14) + 5 | export function returnsFoo2() { + 6 | return returnsFoo(); + 7 | } + 8 | export function printHello3() { + 9 | printHello2(); + 10 | } + 11 | export function throwsError() { + 12 | throw Error("exception from mod1"); + 13 | } +cover [WILDCARD]/cli/tests/subdir/subdir2/mod2.ts ... 25.000% (2/8) + 2 | export function returnsFoo() { + 3 | return "Foo"; + 4 | } + 5 | export function printHello2() { + 6 | printHello(); + 7 | } +cover [WILDCARD]/cli/tests/subdir/print_hello.ts ... 25.000% (1/4) + 1 | export function printHello() { + 2 | console.log("Hello"); + 3 | } -- cgit v1.2.3