Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUNIT?

 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How I need to correct to install JUNIT(www.junit.org)
Thanks in advance
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have trouble to set up the path...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot ... It works now
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic