Is there any way to run go convey tests in an output that can be used with go-junit-report

339 views
Skip to first unread message

first...@gmail.com

unread,
Apr 9, 2014, 1:36:25 PM4/9/14
to golan...@googlegroups.com
I am trying to export my test runs into a junit framework using https://github.com/jstemmer/go-junit-report . However I can not seem to get go convey to just output in the format that go test -v usually outputs in.

Anyone had any luck with getting goconvey to just follow the standard output of go test -v?

Michael Whatcott

unread,
Apr 10, 2014, 11:08:27 PM4/10/14
to golan...@googlegroups.com, first...@gmail.com

Ok, you’re going to hate me for this:

go test -v -timeout=-43s

In this case -43s means “silent”. BTW, -42s means “json”, which is what the server/UI uses to template test results in the browser. I promise I’ve got a fix that will make these flags more explicit, something like this:

go test -v -goconvey.silent

…or something like that. There’s already an issue for this (although somewhat cryptic) that should be taken care of in the next week or two.

So, two things to keep in mind.

  1. The hack on the -timeout flag is temporary. Stay tuned to that issue for updates.
  2. Using the -goconvey.silent flag (once it’s implemented) will cause an error if you run it in a package that doesn’t use goconvey.

I hope that helps.

Mike


Reply all
Reply to author
Forward
0 new messages