Code coverage for Automated api tests

47 views
Skip to first unread message

Anila Saifan

unread,
Jul 30, 2019, 3:41:19 PM7/30/19
to golang-nuts
Hi -Does go supports in generating code coverage for Automated api tests written in Java or some other language?Kindly share the steps to generate code coverage reports for the same .

Brian Hatfield

unread,
Jul 30, 2019, 3:48:19 PM7/30/19
to Anila Saifan, golang-nuts
I'm not 100% sure what you're asking here - if you're asking "can Go parse Java and emit code coverage reports", the answer is of course that you'd have to develop that yourself.

If you're asking "can Go emit code coverage reports for Go code LIKE what Java emits for Java code", have a look at: https://golang.org/cmd/cover/ 

On Tue, Jul 30, 2019 at 3:41 PM Anila Saifan <anila....@gmail.com> wrote:
Hi -Does go supports in generating code coverage for Automated api tests written in Java or some other language?Kindly share the steps to generate code coverage reports for the same .

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e6ac9fa4-e1fe-40a8-aeb8-fcc83e4ca6cd%40googlegroups.com.

Anila Saifan

unread,
Jul 30, 2019, 4:11:19 PM7/30/19
to Brian Hatfield, golang-nuts
Hi Brian-Thanks for the reply.But in this case I am looking for measuring Api Automation test coverage written in Java or karate  against the application code (app developed in go).

Will below article shared help in this case ?

Many Thanks 
Reply all
Reply to author
Forward
0 new messages