Deno Coverage Webview Reporter
Serve generated code coverage reports in a webview with live reloading.
Currently, a local installation of genhtml is required.
MacOS
brew install lcov
Debian/Ubuntu
sudo apt update
sudo apt install lcov
- --allow-all: To run test's, coverage, genhtml and the webview and to pass
all the permission flags to
deno test
which are required by your test's. - --unstable: Required for coverage.
deno install --unstable --allow-all --no-check -r -f -q https://deno.land/x/codeview/codeview.ts
The codeview
command works the same way as deno test
and includes also some
options from deno coverage
. To start codeview just call:
codeview
The first argument is the path to the test files/directory (default: .
) and
the second the path to the watch files/directory (defaults to test files). The
port of the web server can be changed with --port
(default: 1717
) and the
watch mode can be enabled with --watch
.
codeview path/to/test/files --watch --port 8080
For all available options type codeview help
.