Thanks,<br />Dana
Originally posted by DK Taylor:
2. I couldn't get it to find JUnit.
3. I set up the JUnit test modules in a seperate folder, and now it can't find the class its testing.
4. What works in WSAD doesn't seem to work in Windows command line.
5. I count something like four or five different CLASSPATHs, depending on where you are at the moment. Couldn't anyone come up with any other keywords?
And of course, they interfere with each other. And the documentation tends to be fairly cryptic.
I understand that Ant is essentially a volunteer effort, and having used MS make, I am thrilled that Ant is as good as it is. But it was obviously written by Unix/C gurus.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Thanks,<br />Dana
This task runs tests from the JUnit testing framework. The latest version of the framework can be found at http://www.junit.org. This task has been tested with JUnit 3.0 up to JUnit 3.8.1; it won't work with versions prior to JUnit 3.0.
Note: This task depends on external libraries not included in the Ant distribution. See Library Dependencies for more information.
Note: You must have junit.jar and the class files for the <junit> task in the same classpath. You can do one of:
1. Put both junit.jar and the optional tasks jar file in ANT_HOME/lib.
2. Do not put either in ANT_HOME/lib, and instead include their locations in your CLASSPATH environment variable.
3. Do neither of the above, and instead, specify their locations using a <classpath> element in the build file. See the FAQ for details.
Tests are defined by nested test or batchtest tags (see nested elements).
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Thanks,<br />Dana
Originally posted by DK Taylor:
======== Actual Problem ======================
...
I created an /Ant_JUnit folder into which I MOVED ant-junit.jar and copied junit.jar (because it looked like it might want them in the same place) and put Ant_Junit on my project.classpath path. The junit task still complains that it can't find junit. (Could not create task or type of type: junit.)
=============================================
You don't reference the jars here, try adding those:
<pathelement path="c:/Ant_JUnit" />
You do include jars here (not sure what is in this directory, presumably just junit.jar and not ant-junit.jar):
<fileset dir="c:/JUnit"> <include name="**/*.jar" /> </fileset>
(I've never done it quite like you are. We drop a copy of junit.jar into ant_home/lib so ant can find it and then include junit.jar in something like your project.classpath so the application and compiler can find it.)
--------------------------------------------------------------------------------
Thanks,<br />Dana
Thanks,<br />Dana
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|