I need the unit test coverage for individual Junit tests for multiple large projects.
Right now I am using the jacoco agent on the java commandline to run individual junit tests and create exec files as per the process I read else where on this group.
However this is proving to be too slow and takes hours when for large projects compared to running EclEmma in eclipse which takes only ~30 secs for the whole suite.
I want to know if there is a more efficient way to do.
Thank,
Ashar
I want to confirm what I have understood. As per my understanding I need to:
1. Run my junit execution program that executes the whole suite with the -javaagent command line argument as I am already doing.
2. After each test run, i can do either
i. Do a IAgent.dump(true) to create the exec file on disk or
ii. Do a getExecutionData(true) to get byte[].
Then get the ExecutionDataStore from the byte array by creating a
ByteArrayInputStream to then create ExecutionDataReader and setting
an instance of ExecutionDataStore as visitor through setExecutionDataVisitor.
Please let me know if this is the right way to do it. I'll give it a try the day after.
Regards,
Ashar
I can either do a dump from the
I realize this post is about a month old, but I'm trying to do something similar to you. Which of the above approaches did you take? Did it work out how you hoped? Do you have any other advice based on what you tried?
Thanks,
//Kevin