Repository
Current version released
5 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 lcovDebian/Ubuntu
sudo apt update
sudo apt install lcovPermissions
- –allow-all: To run test’s, coverage, genhtml and the webview and to pass
all the permission flags to
deno testwhich 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.tsUsage
The codeview command works the same way as deno test and includes also some
options from deno coverage. To start codeview just call:
codeviewThe 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 8080For all available options type codeview help.