1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

docs(testing): describe coverage blackboxing rules (#7483)

This commit is contained in:
Casper Beyer 2020-09-15 09:23:20 +08:00 committed by GitHub
parent 70f070706d
commit 9b8f1d9be8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,8 +209,11 @@ deno test --failfast
Deno will automatically determine test coverage for your code if you specify the
`--coverage` flag when starting `deno test`. Coverage is determined on a line by
line basis, and is acquired directly from the JavaScript runtime (V8). Because
of this, this coverage is very accurate.
line basis for modules that share the parent directory with at-least one test
module that is being executed.
This coverage information is acquired directly from the JavaScript runtime (V8).
Because of this, the coverage reports are very accurate.
When all tests are done running a summary of coverage per file is printed to
stdout. In the future there will be support for `lcov` output too.