GOCURE

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
