|
|
Re: Junit headless plugin testing code coverage? [message #79374 is a reply to message #79359] |
Tue, 01 August 2006 13:34 |
lucas bigeardel Messages: 155 Registered: July 2009 |
Senior Member |
|
|
Hi,
As my text wrapping wasn't so brilliant on last post I post twice ...
So, here is my answer :
I would say that it seems to be possible to run TPTP JUnit Line Coverage in
batch mode under Linux according to the run.sh you can find in the zip file
:
http://www.eclipse.org/downloads/download.php?file=/tptp/4.2 .0.1/TPTP-4.2.0.1-200607211630/org.eclipse.tptp.platform.cov erage.core-TPTP-4.2.0.1.zip
=====================================
#!/bin/sh
LD_LIBRARY_PATH=/projets/qualif/JREs/linux/IBMJava2-142/jre/ bin:/projets/qualif/JREs/linux/IBMJava2-142/jre/bin/classic: /projets/qualif/JREs/linux/IBMJava2-142/jre/bin:/usr/lib/Sun Java2-1.4.2/jre/lib/i386/client:/usr/lib/SunJava2-1.4.2/jre/ lib/i386:/usr/lib/SunJava2-1.4.2/jre/../lib/i386:/opt/mozill a/lib:/usr/lib:deploy/lib
export LD_LIBRARY_PATH
/projets/qualif/JREs/linux/IBMJava2-142/jre/bin/java -Xcheck:jni -XrunpiLLCAgent:LLC.deploy,../testLLC/llc.selected
-Dcom.ibm.ra.llc.rawreport=/projets/attolcov/workspace/com.i bm.ra.llc/llc.xml -Dcom.ibm.ra.llc.verbose=false -classpath../testLLC/bincom.ibm.ra.llc.test.MyTestedClass=== ===================================If you want to integrate it in PDE Build + JUnit test process it shouldonlybe a matter of CLASSPATH settings and pointing to the righteclipse-testing dir in your test.xml.I have some doubts on the fact this would work with a sun JDK 1.5 or lateras I experienced some strange LLV... errors on level 1.5 code with the UIversion.Hope this helps.- Lucas"lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in messagenews:eanks9$v9d$1@utils.eclipse.org...> Hi,>> I would say that it seems to be possible to run TPTP JUnit Line Coveragein batch mode under Linux according to the run.sh you can find in the zipfile :http://www.eclipse.org/downloads/download.php?file=/tptp/4. 2.0.1/TPTP-4.2.0.1-200607211630/org.eclipse.tptp.platform.co verage.core-TPTP-4.2.0.1.zip>> =====================================>> #!/bin/sh>> LD_LIBRARY_PATH=/projets/qualif/JREs/linux/IBMJava2-142/jre/ bin:/projets/qualif/JREs/linux/IBMJava2-142/jre/bin/classic: /projets/qualif/JREs/linux/IBMJava2-142/jre/bin:/usr/lib/Sun Java2-1.4.2/jre/lib/i386/client:/usr/lib/SunJava2-1.4.2/jre/ lib/i386:/usr/lib/SunJava2-1.4.2/jre/../lib/i386:/opt/mozill a/lib:/usr/lib:deploy/lib >> export LD_LIBRARY_PATH>>/projets/qualif/JREs/linux/IBMJava2-142/jre/bin/java -Xcheck:jni -XrunpiLLCAgent:LLC.deploy,../testLLC/llc.selected -Dcom.ibm.ra.llc.rawreport=/projets/attolcov/workspace/com.i bm.ra.llc/llc.xml -Dcom.ibm.ra.llc.verbose=false -classpath../testLLC/bincom.ibm.ra.llc.test.MyTestedClass=== ===================================If you want to integrate it in PDE Build + JUnit test process itshould onlybe a matter of CLASSPATH settings and pointing to the righteclipse-testingdir in your test.xmlI have some doubts on the fact this wouldwork with a sun JDK 1.5 or lateras I experienced some strange LLV... errorson level 1.5 code.Hope this helps.- Lucas"David Samuelsson"<david.samuelsson@sonyericsson.com> wrote inmessagenews:b5b0949772c55cfa2f7ba2dfd4b335a4$1@www.eclipse.org...> Hellothere!>> We are in the process of creating (actually porting) some old appstoEclipse plugins. We are building the eclipse plugins via Cruise Controlandhave our version control system in Clearcase. We have after reading( http://www.eclipse.org/articles/Article-PDE-Automation/autom ation.html )managed to figure out how to exceute an Junit plugin test via cruise controlasan normal command task just. Great now our plugins can be tested !>> Thenext caveat is to try and get coverage of the Junit plugin tests. Howdoesthe developers involved in Eclipse.org do this currently, do everydeveloperrun their own coverage tools to improve the coverage rate, or isthere somemagical tool that goes through all junit plugin tests and runsthose aginstthe plugins to measure the coverage?>> We have now gone through Nounit, andCobertura with trying to set this upto measure test code coverage to nosucess. We can get Cobertura/Nounit toreport back on things that are normalJunit tests, but not junit plugintests, thus our coverage is very low.>> Iguess our last hope is to try Emma (http://emma.sf.net) seems soemonehas hadluck with this atleast( http://dev.eclipse.org/newslists/news.eclipse.platform/msg44 478.html)unless there is some documentation for how to set this up for Eclipseplugintests. We have profiled the Junit plugin test via TPTP and that worksbut itdoes not give us the line / branch coverage that we would want, alsowe wantto excecute it from cruise control (headless) on a regular basis.>>Any ideas?>> Best regards>> Dave>>>
|
|
|
|
|
|
|
Re: Junit headless plugin testing code coverage? [message #95060 is a reply to message #79508] |
Fri, 06 April 2007 18:39 |
Eclipse User |
|
|
|
Originally posted by: kathir.atc.tcs.com
Hi,
I am also struck with using cobertura. did you get successful through
cobertura?
It would be great if you can give the steps on using emma to work with
plugin testing code coverage. I am struck with getting the coverage
reports for my junit plugin projects.
Br,
Kathir.
David Samuelsson wrote:
> Ok, seems we managed to get emma to work though, so that is nice, just
> trying to get through cobertura one more time before we finally give
> up on that since emma started working. hence my other post here in TPTP.
>
> /Dave
>
|
|
|
Powered by
FUDForum. Page generated in 0.04234 seconds