dokimi

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 2 Imported by: 0

README

dokimi

Go Release Go Report Card Maintainability Test Coverage

Dokimi provides some helper commands for testing in Go.

Table of Contents

Installation

go install github.com/farbodsalimi/dokimi@latest

Commands

report
Usage:
  dokimi report [flags]

Flags:
  -h, --help              help for report
  -i, --input string      Path to input file
  -o, --output string     Path to output file
  -r, --reporter string   Reporter name e.g. istanbul, lcov, ...
      --show              Shows written reports
Write Istanbul json reports and display them
  1. Go inside your project directory and run your tests:

    go test -v -coverprofile=coverage.out ./...
    
  2. Show your coverage in Istanbul UI:

    dokimi report --input=coverage.out --output=coverage.json --reporter=istanbul --show
    
Only write Istanbul json reports
  1. Go inside your project directory and run your tests:

    go test -v -coverprofile=coverage.out ./...
    
  2. Generate Istanbul json file:

    dokimi report --input=coverage.out --output=coverage.json --reporter=istanbul
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL