Skip to content

Reporter for Ginkgo to make some nice output in Goland

License

Notifications You must be signed in to change notification settings

TaylorOno/golandreporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()})

About

Reporter for Ginkgo to make some nice output in Goland

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%