hi,
We are using the ant command (with a build.xml config file) for api integration test, and using the mvn command (with modified pom.xml file) for unit test. Both work fine and can generate reports.
Now we want to merge these two together. Why? We assume that some code are covered by the integration test, some other code are covered by the unit test. Of course, some code are probably covered by both tests. We'd like to get an overall coverage report, no matter covered by which test.
I'm thinking of using the 'ant ... merge' command to merge all the .exec files generated by both tests, and then using the 'ant ... report' command generate the reports. But I have two questins.
1. The 'ant ... merge' command does generate a result .exec file, but does it contain the correct date? For example, if some code are covered by both types of test, can the result be merged correctly here?
2. The build.xml file used in 'ant ... report' command specifies the class files and the source code location. I tried using the build.xml used for integration test, and did get the reports. I guess this is ok, assuming the code used for unit test is the same version as that for integration test?
Thanks.
--huafeng