Code Coverage using Gauge

400 views
Skip to first unread message

Arish Arbab

unread,
Apr 20, 2015, 10:29:01 AM4/20/15
to getg...@googlegroups.com
Does Gauge test run as Junit Tests ? If so, can code coverage tools like JaCoCo and eclemma be used to check the code covered with the gauge tests ?
If not, then is there any tool which i can use to generate the code coverage report ?

Thanks

Srikanth V

unread,
Apr 20, 2015, 10:38:40 AM4/20/15
to Arish Arbab, getg...@googlegroups.com
Hi,

Gauge allows you to choose any framework for asserting on expectations. That being said, most of Gauge's use case are one or other form of Black Box testing. Which implies that Gauge usually tests an application at a higher level while code coverage is usually a metric tracked at Unit testing level.

Hence, gathering code coverage is not something that we expect Gauge to do, unless you have a use case that we are overlooking here. If it is functional automation, then code coverage is a difficult metric to collect. 

I suppose, technically it is possible to instrument a process under test, to profile the code that is executed under a given workflow and gather coverage, but I don't know if such a metric would be effective.

Hope this helps.

Best Regards
Srikanth

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/a8e28eac-fe46-4293-92be-646dc23ed439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arish Arbab

unread,
Apr 20, 2015, 11:42:21 AM4/20/15
to getg...@googlegroups.com, arish...@gmail.com
Thanks for the reply. Actually, I would be writing my unit tests in @Step methods, those unit tests would in turn call the service methods. I was wondering if there is a workaround in Gauge to track the source code covered like we have in Cucumber and Specflow( As their tests run as Junit tests).
I want to Gauge for GUI as well Unit tests automation.

This feature would definitely help in measuring the effectiveness of the code written.

Sarita Pol

unread,
May 21, 2015, 5:33:03 AM5/21/15
to getg...@googlegroups.com
Yes this would definately be added advantage. One of the case I think of easy scaling without having guage to be installed on machines to understand guage specifications.
As we have for other tools like Cucumber or Jbehave. Jar support to understand step implementations of specs + junit support for execution helps a lot.
Reply all
Reply to author
Forward
0 new messages