Testing using ANT
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The build.file I use for the example application is as follows. The compilation goes thru, but not the testing.
Could you please help? The message is just Build successful.
Could you please help? The message is just Build successful.
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The problem most people have is that they have to tell Ant where the JUnit jar is, since it doesn't come in automatically. But I think that's supposed to give an exception.
Try ant with the "-v" option: "ant -v test" and see if it tells you anything more.
Try ant with the "-v" option: "ant -v test" and see if it tells you anything more.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Sunder Ganapathy
Ranch Hand
Posts: 120
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thanks Tim. After using -v option I get the following message.
C:\tomcat\apache-tomcat-6.0.14\webapps\newselen>ant -v test
Apache Ant version 1.7.0 compiled on December 13 2006 Buildfile: build.xml
Detected Java version: 1.6 in: C:\Program Files\Java\jdk1.6.0\jre
Detected OS: Windows XP
parsing buildfile C:\tomcat\apache-tomcat-6.0.14\webapps\newselen\build.xml with
URI = file:/C:/tomcat/apache-tomcat-6.0.14/webapps/newselen/build.xml
Project base dir set to: C:\tomcat\apache-tomcat-6.0.14\webapps\newselen
[antlib
rg.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
[property] Loading C:\tomcat\apache-tomcat-6.0.14\webapps\newselen\build.properties
Build sequence for target(s) `test' is [test]
Complete build sequence is [test, report, compile, ]
test:
BUILD SUCCESSFUL
Total time: 1 second
[ April 10, 2008: Message edited by: Sunder Ganapathy ]
C:\tomcat\apache-tomcat-6.0.14\webapps\newselen>ant -v test
Apache Ant version 1.7.0 compiled on December 13 2006 Buildfile: build.xml
Detected Java version: 1.6 in: C:\Program Files\Java\jdk1.6.0\jre
Detected OS: Windows XP
parsing buildfile C:\tomcat\apache-tomcat-6.0.14\webapps\newselen\build.xml with
URI = file:/C:/tomcat/apache-tomcat-6.0.14/webapps/newselen/build.xml
Project base dir set to: C:\tomcat\apache-tomcat-6.0.14\webapps\newselen
[antlib
rg.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.[property] Loading C:\tomcat\apache-tomcat-6.0.14\webapps\newselen\build.properties
Build sequence for target(s) `test' is [test]
Complete build sequence is [test, report, compile, ]
test:
BUILD SUCCESSFUL
Total time: 1 second
[ April 10, 2008: Message edited by: Sunder Ganapathy ]
| This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |











