[Jxcl-devel] Re: Help getting Ucoverage working
Status: Alpha
Brought to you by:
jddixon
|
From: Jim D. <jd...@di...> - 2005-03-08 15:13:08
|
On Mon, 7 Mar 2005, De Winter, Jack wrote: > Hi, I am having a nasty time getting the Ucoverage tool up and running. > I have eliminated all of the options except the noted ones, and get the > following output. Is there something simple I am forgetting to setup > that isn't covered in the notes? UCovered is intended to be used with Ant, JUnit, a suite of unit tests, and some software under test. The ucovered/example/3x6 subdirectory contains a complete test setup, one in which three test classes (TestA, TestB, and TestC) drive six classes under test (Front1, Front2, Front3, Middle1, Middle2, and Back). The object of the game is to determine to what degree the test classes exercise the classes under test. In this case there are three test classes and six classes under test. What I would do is first verify that example/3x6 works in your environment. Then I would modify example/3x6/build.xml so that it uses your test classes under Ant and JUnit to exercise the software you want you measure coverage over. > Cheers, > Jack > > C:\projects\CalcService>%JAVADIR%\java org.jxcl.ucovered.textui.TestRunner amazon.SurchargeCalculation.business.tests.TestSupportObjects checkCoverage="true" checkIncludes="amazon.SurchargeCalculation.business" checkExcludes="amazon.SurchargeCalculation.business" filtertrace="true" haltOnError="true" haltOnFailure="true" propfile="myPropFile" showOutput="true" todir="output > NO TALK OPTIONS SET > Textui.handleArgs: setting up JXCL with classpath: > .;\scripts\classpath\junit.jar;\scripts\classpath\jxcl-0.7.jar;\scripts\classpath\ucovered-0.7.jar;\scripts\classpath\ant-1.5.4.jar;\scripts\classpath\bcel-5.1.jar > TestRunner.runWithIt - test amazon.SurchargeCalculation.business.tests.TestSupportObjects > > =========================== > UCovered COVERAGE REPORT > * the registry is empty * > =========================== > > > C:\projects\CalcService>%JAVADIR%\java junit.textui.TestRunner amazon.SurchargeCalculation.business.tests.TestSupportObjects > ................ > Time: 0.06 > > OK (16 tests) > > > C:\projects\CalcService> > -------- > Jack De Winter - Software Development Engineer > dew...@am... > Ordering - POSSE - Taxation > (206) 266-7265 -- Jim Dixon jd...@di... tel +44 117 982 0786 mobile +44 797 373 7881 http://jxcl.sourceforge.net Java unit test coverage http://xlattice.sourceforge.net p2p communications infrastructure |