From: Sapan d. <sap...@gm...> - 2013-03-09 02:19:06
|
Hi All, I have a situation and i am not able to figure out how to get out of it - I have a main application code head branch, and i cut out a branch from it and created a maven project with cucumber as tests. So, when i run maven integration test on this project from local machine, my test runs on a server, where the main application build is deployed and my test classes trigger some classes of the main application code and do some work based on test data e.g put some re calculated values in the DB. My test classes are only validating the db entries put by the application code against my test data set So, when i put a cobertura plugin into my project pom and run the tests, the cobertura report only contains the coverage of my test classes (my maven project with cucumber test step definitions). But my requirement is that i get the coverage of all the main application code which was triggered by my test. I am not able to figure out how to do it, because in my project i have the typical maven directory structure of src->test->java, which contains only my test code and my pom instrumentation section has only access to these files only, which i believe is one of the reason that the main called application code is not covered. So, can you help me find a way, so that i am able to get the coverage of the main application which my test has invoked. Thanks a lot, in advance. |