ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazandjian Erik <Erik.Kazandj...@siemens.atea.be>
Subject Junit test reports
Date Wed, 14 Nov 2001 07:51:01 GMT
Hello,

I'm trying to automise our Junit tests with Ant. Taht works but 'they' want
a report every morning of the tests that ran during the night. I saw that
there are some report tools for tests but I can't get them running. I'm
using junit3.7. Here is a sample opf my build.xml

<target name="facade_tests" depends="testsuite">		
	<junit printsummary="no">
     	<classpath>
			<pathelement path="${myenv.MY_JAVA_CLASSES}"/>
			<pathelement path="${myenv.CLASSPATH}"/>
			<pathelement
location="${myenv.ANT_HOME}/lib/optional.jar"/>
			<pathelement
location="${myenv.ANT_HOME}/lib/ant.jar"/>
		</classpath>
      
      <batchtest fork="yes" todir="/home/integrator/.tests_output">
         <formatter type="xml"></formatter> 
         <fileset dir="${destdir}">
		<include
name="**/test/**/suites/FacadeTests.class"></include>
	</fileset>
      </batchtest>       
    </junit>
</target>


I get the following errors when I try to run this target

facade_tests:
    [junit] Exception in thread "main"
javax.xml.parsers.FactoryConfigurationError:
com.sun.xml.parser.DocumentBuilderFactoryImpl
    [junit] 	at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:80)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDocu
mentBuilder(XMLJUnitResultFormatter.java:81)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTe
stSuite(XMLJUnitResultFormatter.java:124)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSu
ite(JUnitTestRunner.java:279)    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:200)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:342)
    [junit] TEST com.siemens.square.test.suites.FacadeTests FAILED

BUILD SUCCESSFUL

Does anybody have any idea what I'm doing wrong ?


Thanks
Erik



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message