Repository
Current version released
3 years ago
Versions
❯ Codeview
Deno Coverage Webview Reporter
Serve generated code coverage reports in a webview with live reloading.
Requirements
Currently, a local installation of genhtml is required.
MacOS
brew install lcov
Debian/Ubuntu
sudo apt update
sudo apt install lcov
Permissions
- –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.
Installation
deno install --allow-all --unstable https://deno.land/x/codeview@0.2.1/codeview.ts
Usage
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
.