deno.com
On this page

Deno coverage

Description of video Jump to heading

We updated deno coverage in 1.39 with a better output and HTML generation.

Transcript and code Jump to heading

If you're using deno test, have you checked out deno coverage?

deno coverage is a great way to see how much test coverage you have, just add the coverage flag to Deno test:

deno test --coverage

This will save coverage data to /coverage. Then run the coverage command:

deno coverage ./coverage

to see a coverage report.

In Deno 1.39, deno coverage was updated in two ways; first it now outputs a concise summary table and second, if you add the --html flag:

deno coverage ./coverage --html

the coverage tool generates static HTML so that you can explore your coverage in a browser.

We got more plans for Deno coverage, like simplifying the steps into a single command and more.

Find more videos in the Examples page and on our YouTube channel.

Did you find what you needed?

Privacy policy