I have a java server that is tested with Ruby as well as Python based tests.
1. Is it possible to determine code coverage with Jacoco in this mixed environment?
2. Do the ANT instructions stay the same as provided for java tests?
Thanks.
Hello Community -I have a java server that is tested with Ruby as well as Python based tests.
1. Is it possible to determine code coverage with Jacoco in this mixed environment?
2. Do the ANT instructions stay the same as provided for java tests?
Thanks.
Thanks. After going through docs, I have few more questions -
1. Since I use ANT file and have included <jacoco:coverage> tags around the executions, my understanding is that I don't need a separate java agent to run. Am I correct?
2. In the examples I see, I notice that sometime I see <jacoco:coverage> tags around the execution which needs to be instrumented (e.g. the server code that will be executed by tests) and sometimes I see these tags around the test execution (e.g. tests which run against server code). Not sure which is the correct approach?
Thanks,
Kanu
On Wednesday, August 30, 2017 at 9:19:48 PM UTC-7, kanukal...@gmail.com wrote:
> Evgeny,
>
> Thanks. After going through docs, I have few more questions -
>
> 1. Since I use ANT file and have included <jacoco:coverage> tags around the executions, my understanding is that I don't need a separate java agent to run. Am I correct?
>
> 2. In the examples I see, I notice that sometime I see <jacoco:coverage> tags around the execution which needs to be instrumented (e.g. the server code that will be executed by tests) and sometimes I see these tags around the test execution (e.g. tests which run against server code). Not sure which is the correct approach?
>
> Thanks,
> Kanu
Yes, it works perfectly fine with other test-codes as well. We have tried it manually and using c# test automation code to verify this. Same way, it will work for other languages too.
Feel free to check out our solution here:
http://www.qalearningguide.com/2017/10/code-coverage-for-android-using-jacoco.html
Hope this helps you as well.
Thanks,
Suparna