From: chun ji <cji...@ya...> - 2006-12-06 23:40:20
|
Hi folks, I have a problem here. Following is my old build.xml looks like, " <target name="instrument"> <cobertura-instrument todir="${instrumented.dir}"> //includes and excludes all files for checking coverage here. </target> </target> <target name="junit-tests"> <testng ...> // my testng script here. </testng> </target> <target name="coverage-report" depends="test"> <cobertura-report destdir="${coverage.html.dir}"> // generage the coverage report here. </cobertura> </target> ". which creates information for me about how much my source code have been covered by my test cases. Now something has changed in my test cases that I cant run all my test cases by using ONE testng at the same time. So to work around, I have created a for-loop and execute the test cases per package. So here is my new target for the target junit-tests <target name=junit-tests> <foreach param="pkg" list="pkg1,pkg2,pkg3" delimiter="," target="pkg-test/> </target> <target name=pkg-test> <testng > // my testng script here. </testng> </target> Well, once I did this change and run the above target again, the report tells me I have 0 coverage. Does someone know how to solve this kind of problem? ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |