20030308 Saturday March 08, 2003

RE: Debugging JUnit tests in Eclipse - how? James provided me with the answer I was looking for this morning - use Run >> Debug As >> JUnit Test. Cool - it worked! I had to add a few additional JAR files to my project's classpath to make it run a test succesfully - but I'm stoked that it's working! A comment I left on James's weblog might interest you:

I don't *need* Ant to run JUnit tests, but as strange as this may sound - it's the only way I've ever done it. In fact, I've hardly written or run *any* Java classes with a main() method. ;-)

Crazy, huh? I guess that's what happens when you start out writing JSPs and Servlets vs. command-line or Swing apps. Posted in Java at Mar 08 2003, 10:47:40 AM MST 1 Comment

Comments:

Yes its easy to run from eclipse.. the hard part is breakign all the developers bad habits so that they will depend on writing JUnit anc cactus tests as part of the development/build cycle.. and I don't think God will let me shoot all developers at this point :)

Posted by Fred Grott on March 09, 2003 at 01:46 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud