Breaking changes coming to gocov

234 views
Skip to first unread message

Andrew Wilkins

unread,
Dec 3, 2013, 12:50:08 AM12/3/13
to golan...@googlegroups.com
If you use gocov (github.com/axw/gocov), be aware that "gocov test" will soon be no more. I intend to delete the instrumentation part of gocov, and have it consume cover profiles as output by "go test -cover" in Go 1.2. If you particularly need "gocov test", then please create a fork. The upshot of this is: expect to soon be able to use the output of go test -cover with "gocov annotate" and gocov-related packages (goveralls, gocov-xml, etc.)

Cheers,
Andrew

Andrew Wilkins

unread,
Dec 4, 2013, 2:24:07 AM12/4/13
to golan...@googlegroups.com
The changes are now pushed to github. I ended up leaving "gocov test" in; it now just calls "go test -coverprofile <tempfile>" under the covers. There's a new command, "gocov convert" that converts cover profiles to gocov's JSON interchange format.

I've confirmed that the builtin report and annotate commands work. If anyone has trouble with goveralls, etc., please file an issue.

Cheers,
Andrew

Dave Cheney

unread,
Dec 4, 2013, 2:32:57 AM12/4/13
to Andrew Wilkins, golan...@googlegroups.com
Woohoo! It might be useful to remind people how to ensure they have the most up to date version of gocov. 
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andrew Wilkins

unread,
Dec 4, 2013, 2:41:35 AM12/4/13
to Dave Cheney, golan...@googlegroups.com
On 4 December 2013 15:32, Dave Cheney <da...@cheney.net> wrote:
Woohoo! It might be useful to remind people how to ensure they have the most up to date version of gocov. 

It might :)

1. Make sure you have Go 1.2

Basic usage instructions here: https://github.com/axw/gocov. Existing commands should work as is, unless you were using some "advanced" flags of gocov test for excluding dependencies and so on. Those flags no longer exist; you've got whatever go test provides to work with.

(Note: the build is failing due to drone.io not having Go 1.2 yet)



--
Andrew Wilkins
Reply all
Reply to author
Forward
0 new messages