gol
github.com/semanticallynull/golandreporter
go get github.com/semanticallynull/golandreporter
gol

github.com/semanticallynull/golandreporter

Reporter for Ginkgo to make some nice output in Goland

by Katie Chapman

v0.0.0-20200627193113-3dad6cfae7c0 (see all)License:MIT
go get github.com/semanticallynull/golandreporter
Readme

Goland Ginkgo Reporter

Ginkgo does not output results in a format which can be converted into JSON (via go tool test2json, which is used by Goland to get a list of output.

This reporter will trick test2json into outputting the Ginkgo specs similar to go test output.

Ginkgo output in Goland's "Run" window

Usage

In your suite replace RunSpecs(t, "Integration Suite") with the following:

golandReporter := golandreporter.NewGolandReporter()
RunSpecsWithCustomReporters(t, "Integration Suite", []Reporter{golandReporter})

If you want to retain normal Ginkgo formatting when using it from the CLI the best option is to use an environment variable in your Run Configuration, and use it like this:

RunSpecsWithCustomReporters(t, "Integration Suite", []Reporter{golandreporter.NewAutoGolandReporter()})

GitHub Stars

12

LAST COMMIT

2yrs ago

MAINTAINERS

0

CONTRIBUTORS

6

OPEN ISSUES

1

OPEN PRs

2
VersionTagPublished
v0.0.0-20200627193113-3dad6cfae7c0
1yr ago
v0.0.0-20190814091131-b87ae263455c
3yrs ago
No alternatives found
No tutorials found
Add a tutorial