gocure

command module
v0.0.0-...-ce6bddd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 3 Imported by: 0

README

GOCURE

alt text

Go Cucumber Report

This package generates html reports from cucumber json reports

Usage

Is it possible to import in a project

import (
	"gitlab.com/iamrodrigoit/gocure/pkg/htmlreport"
)

func main() {
	
    // Generate report html file with charts
    htmlreport.Generate("cucumber_report.json", "output/", true)

    // Generate report html file without charts
    htmlreport.Generate("cucumber_report.json", "output/", false)

    // Generate report html text with charts
    htmlReport, _ := htmlreport.Export("cucumber_report.json", true)
    fmt.println(htmlReport)
    
    // Generate report html text without charts 
    htmlReport, _ := htmlreport.Export("cucumber_report.json", false)
    fmt.println(htmlReport)
}

or you can build and execute

go build gocure.go
Usage of ./gocure:
  -c    Set if chart will be included
  -j string
        Cucumber Json File
  -o string
        Output Folder

Example:

./gocure -j /path/to/json/file.json
./gocure -j /path/to/json/file.json -o output/folder/
./gocure -j /path/to/json/file.json -o output/folder/ -c

HTML Report Screenshot

alt text

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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