[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tptp] Re: Junit headless plugin testing code coverage?

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.coverage.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/SunJava2-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/mozilla/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.ibm.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@xxxxxxxxx> wrote in messagenews:eanks9$v9d$1@xxxxxxxxxxxxxxxxxxxx> 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.coverage.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/SunJava2-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/mozilla/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.ibm.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@xxxxxxxxxxxxxxxx> wrote inmessagenews:b5b0949772c55cfa2f7ba2dfd4b335a4$1@xxxxxxxxxxxxxxxxxx> 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/automation.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/msg44478.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>>>