Finding non-Java source files.

11 views
Skip to first unread message

duncan.m...@gmail.com

unread,
Mar 14, 2016, 3:08:02 PM3/14/16
to JaCoCo and EclEmma Users
I've recently been working on improving line maps and producing coverage reports for a non-Java language running on the JVM and ran into a couple of issues because the source is not organised in a Java like source structure.

I've got round this by patching Jacoco to try finding non-Java source files using just the source file information if the lookup including the package fails. I also had to normalise directory separators to avoid problems with backslashes.

This seems to be a good improvement both for us and other dynamic languages implementations such as Nashorn's which follows a similar pattern.

Would the project be open to patches for this?

Duncan.

Marc R. Hoffmann

unread,
Mar 14, 2016, 4:05:47 PM3/14/16
to jac...@googlegroups.com
Hi Duncan,

is there a place where we can take a look into your improvements? In
general small and specific patches (preferable with test cases) help to
get reviewed and adopted into the JaCoCo source base.

Regards,
-marc

duncan.m...@gmail.com

unread,
Mar 15, 2016, 3:20:21 PM3/15/16
to JaCoCo and EclEmma Users
I'll put together a pull request. Need to add some unit tests etc. First.

duncan.m...@gmail.com

unread,
Mar 20, 2016, 7:51:11 PM3/20/16
to JaCoCo and EclEmma Users, duncan.m...@gmail.com
I've now created a pull request with the necessary changes and some new unit tests to cover the functionality.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages