Author: erwan
Date: Mon Feb 13 20:04:23 2012 New Revision: 1243671 URL: http://svn.apache.org/viewvc?rev=1243671&view=rev Log: update documentation on unit testing in OFBiz Modified: ofbiz/trunk/framework/documents/UnitTest.xml Modified: ofbiz/trunk/framework/documents/UnitTest.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/documents/UnitTest.xml?rev=1243671&r1=1243670&r2=1243671&view=diff ============================================================================== --- ofbiz/trunk/framework/documents/UnitTest.xml (original) +++ ofbiz/trunk/framework/documents/UnitTest.xml Mon Feb 13 20:04:23 2012 @@ -233,38 +233,23 @@ <para> A Cobertura error message can show because of the test system requires a cobertura library that calculates the percentage of code accessed by tests like this: <programlisting> - [java] java.lang.ClassNotFoundException: org.ofbiz.base.config.CoberturaInstrumenter - [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) - [java] at java.security.AccessController.doPrivileged(Native Method) - [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) - [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) - [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) - [java] at org.ofbiz.base.start.InstrumenterWorker.instrument(InstrumenterWorker.java:39) - [java] at org.ofbiz.base.start.Classpath.instrument(Classpath.java:92) - [java] at org.ofbiz.base.start.Start.initClasspath(Start.java:228) - [java] at org.ofbiz.base.start.Start.init(Start.java:87) - [java] at org.ofbiz.base.start.Start.main(Start.java:410) + [java] InstrumenterWorker.instrument - Code instrumentation has been disabled, unable to find instrumenter class org.ofbiz.base.config.CoberturaInstrumenter </programlisting> If you want to use cobertura, you have to install it: <orderedlist> <listitem> <para> - download the library from <link xl:href="http://cobertura.sourceforge.net/">the Cobertura website</link>. + Execute the download-cobertura ant task </para> </listitem> <listitem> <para> - Put cobertura.jar in 'framework/base/lib' directory. - </para> - </listitem> - <listitem> - <para> - Comment cobertura excluding in 'framework/base/build.xml' file. + Re-compile source code. </para> </listitem> <listitem> <para> - Re-compile source code. + Execute the run-tests ant task </para> </listitem> </orderedlist> |
Free forum by Nabble | Edit this page |