Supported ways of specifying class/source files for report generation?

35 views
Skip to first unread message

and...@froglogic.com

unread,
Oct 19, 2017, 5:49:59 AM10/19/17
to JaCoCo and EclEmma Users
Hi,

I'm planning on getting code-coverage for functional ui tests run on an eclipse-based application. I get the jacoco report file out without any problems, but in order to get a html report (or integrate with the Jenkins jacoco plugin) I'll apparently need source code and class files for the jacoco html report generator (and any others). However the tests are being run on a system separate from the one actually building the application, so access to the original source code and the .class-files on disk is not that easy.

So I'm wondering wether jacoco supports looking into jar-files for the class files as well as the source code? That way I could pass the eclipse-plugin-jars I want coverage data for to the report generator. If this also works for source code files I could use eclipse-source-bundles for the latter.

That way I wouldn't need to figure out how to transport the source and class files from the system building the application to the one running the tests.

Andreas

sudha...@indianeagle.com

unread,
Nov 21, 2017, 4:01:21 AM11/21/17
to JaCoCo and EclEmma Users

Evgeny Mandrikov

unread,
Nov 23, 2017, 4:42:04 PM11/23/17
to JaCoCo and EclEmma Users
Hi,

On Thursday, October 19, 2017 at 3:19:59 PM UTC+5:30, and...@froglogic.com wrote:
> So I'm wondering wether jacoco supports looking into jar-files for the class files as well as the source code?

According to documentation of JaCoCo Ant Tasks ( http://www.jacoco.org/jacoco/trunk/doc/ant.html ):
classfiles and sourcefiles elements accept any Ant resource collection ( http://ant.apache.org/manual/Types/resources.html#collection )

Hope this helps.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages