aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes JUNIT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JUNIT?" Watch "JUNIT?" New topic
Author

JUNIT?

Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
How I need to correct to install JUNIT(www.junit.org)
Thanks in advance
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What I did:
1. Download newest version from JUnit.org
2. Extract the zip file contents to desired location of JUnit files
3. Follow installation instructions provided in the README.html file
Does this work for you? Are you having difficulties setting classpath (and/or path) properties?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
I have trouble to set up the path...
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Perhaps a peek at my path and classpath settings would help. When I use JUnit, I do so with a couple of batch files that adjust the path and classpath settings to work with JUnit.
For compiling:
junitc.bat
----------
h:\jdk1.3.1_02\bin\javac.exe -classpath "%classpath%;.;h:\junit\junit.jar" %1
For running tests:
junit.bat
---------
h:\jdk1.3.1_02\bin\java.exe -classpath "%classpath%;.;h:\junit\junit.jar" junit.swingui.TestRunner "$[FilePath]" %1
You got it working yet?
dodo dimitrius
Greenhorn

Joined: Dec 04, 2001
Posts: 24
Hi Mike,
Just read all messages on my post Junit -set classpath problem.
Add to your classpath:
set classpath=c:\jdk13.1\........;c:\junit3.7\junit.jar;c:\junit3.7
Open DOS Window, go to junit3.7 directory and type lines:
java junit.textui.TestRunner junit.example.AllTests and the others.(You can find them in the README.html file, in the Junit3.7 directory, under Installation heading).
Berko
Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
Thanks a lot ... It works now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JUNIT?