Skip to content

SemanticallyNull/golandreporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages