Skip to main content

CLI

The Kensa CLI is a lightweight Go binary that serves HTML reports over HTTP — useful when your IDE doesn't have a built-in web server.

Setup

Copy the wrapper script from the Kensa repository into your project root:

  • macOS / Linuxkensa (shell script)
  • Windowskensa.bat

The wrapper auto-downloads and keeps the binary up to date from GitHub releases. Commit it to your repository; the binary itself lives in .kensa/bin/ and can be gitignored.

Usage

Serve a directory directly

kensa --dir build/kensa-output

Serve a named folder from config

Add a .kensa-properties file to your project root:

testFolders:
my-tests: build/kensa-output
port: 8080 # optional, default 8080

Then run:

kensa my-tests

Flags

FlagDefaultDescription
--dir <path>Directory to serve (overrides config)
--port <n>8080Port to listen on
--opentrueAuto-open browser on start

Building from source

cd cli
go build -o build/bin/kensa cmd/kensa/main.go