Skip to content

c4spar/deno-codeview

Repository files navigation

❯ Codeview

Version issues Deno version Licence
Discord nest.land badge

Deno Coverage Webview Reporter
Serve generated code coverage reports in a webview with live reloading.

prompt

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 --unstable --allow-all --no-check -r -f -q https://deno.land/x/codeview/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.