The most common problem that results in the symptoms you describe is that you extend TestCase, if you extend TestCase jUnit runs your tests with the JUnit3...
20934
meldrum
Sep 27, 2008 2:24 am
I am using Junit4.0 inside eclipse. I tried adding annotation tags like; @BeforeClass @AfterClass, @Ignore, etc. They seem to have no effect. Is there some...
20933
kentb
kentlbeck
Sep 25, 2008 9:34 pm
Malte, A way I can think of to clean up after a whole run (and set up before one starts, for that matter), is to attach a listener of your own devising to a ...
20932
toalexsmail
Sep 25, 2008 9:07 pm
Kent, Thank you for your explanations. I think they are pretty clear. I will re-read your paper later on (it can take some time, though) and I will post my...
20931
toalexsmail
Sep 25, 2008 9:04 pm
Kent, Thank you for your explanations. I think they are pretty clear. I will re-read your paper later on (it can take some time, though) and I will post my...
20930
toalexsmail
Sep 25, 2008 8:57 pm
... See http://tech.groups.yahoo.com/group/junit/message/20668 "Junit 3 suite setup tear down"...
20929
toalexsmail
Sep 25, 2008 8:43 pm
... I think you have forgot. Actually there is a tracker (it wasn't opened by me) ...
20928
toalexsmail
Sep 25, 2008 8:39 pm
... I think you have forgot. Actually there is a tracker (it wasn't opened by me) ...
20927
adrian.kuhn
Sep 25, 2008 8:10 pm
Done https://bugs.eclipse.org/bugs/show_bug.cgi?id=248650 Sorry for the delay. cheers, AA...
20926
Malte Finsterwalder
maltefinster...
Sep 25, 2008 7:57 pm
Hi there, is there a way to run cleanup code after all test are run? I sometimes have some setup that I want done once before any test is run. This is easy...
20925
kentb
kentlbeck
Sep 25, 2008 6:36 pm
Alex, The payment collection process is a fairly typical business process: one a quarter (say), the client owes the insurance company $1000. Out goes a ...
20924
kentb
kentlbeck
Sep 25, 2008 6:36 pm
Kamal, I'm glad you found the paper helpful. It would be helpful to have objective measures for the three factors I found. In my own practice I rely on ...
20923
David Saff
dsaff
Sep 25, 2008 5:18 pm
I think perhaps another thread or tracker item is the best place to continue this conversation; I'm confused about what set of requirements we're designing...
20922
David Saff
dsaff
Sep 24, 2008 8:59 pm
Sushil, I would definitely recommend trying to write JUnit tests for a simple, self-contained class first, to make sure you understand the basics. Then,...
20921
toalexsmail
Sep 24, 2008 8:42 pm
... class. ... How does this help? I want to be able to run ANY (sub)set of the methods from arbitrary set of test-classes....
20920
David Saff
dsaff
Sep 24, 2008 3:54 pm
Should I take the token? David...
20919
David Saff
dsaff
Sep 24, 2008 2:18 pm
... In this case, does it make more sense to handle it outside the JUnit framework entirely, using a Singleton pattern? David...
20918
David Saff
dsaff
Sep 24, 2008 2:13 pm
Miro, Sorry for the late response. You should be able to right-click the test result in the JUnit view, and select "Rerun JUnit test". I believe you can also...
20917
David Saff
dsaff
Sep 24, 2008 1:58 pm
Actually, I would argue it's named correctly: the methods tagged happen before and after whatever the current class defines. On the one hand, it's an...
20916
Nina Niskanen
mokso1
Sep 24, 2008 11:32 am
Did you remember to set your classpath? Nina ... -- I reject your reality and substitute my own....
20915
raj_sharath
Sep 24, 2008 1:11 am
Hi- I am trying to run JUnit from command line. I have a Junit named "Junit2" in c:\small. The below is how i am running it C:\small>java...
20914
toalexsmail
Sep 23, 2008 7:28 pm
Hi, Kent! Your example with Chart API is good. However, your example with payment processing is completely nightmare for me. I didn't understand what does the...
20913
David Saff
dsaff
Sep 23, 2008 2:52 pm
Functionally, there's nothing to stop a given method being run on the same object with different threads in order to root out concurrency problems. You point...
20912
Kamal Ahmed
kamal2222ahmed
Sep 23, 2008 12:51 am
Kent, This is fantastic. I could never put into words these concepts we struggle with every day as eloquently. I would like to know though, how can we quantify...
20911
kentb
kentlbeck
Sep 23, 2008 12:03 am
All, Last week on succeeding days I encountered two situations, one where system-level tests were valuable and unit tests would have been useless and one where...
20910
Per Jacobsson
perjacobsson@...
Sep 22, 2008 11:26 pm
I like the idea, but would that approach to multithreaded tests work for JUnit? The way it creates a new instance of the test class every time a test method is...
20909
toalexsmail
Sep 21, 2008 9:47 pm
... into a ... achieving ... sometimes by ... http://www.amazon.com/Working-Effectively-Legacy-Robert-Martin/dp/0131177052 ... I didn't read this book and I...
20908
Joakim Ohlrogge
j0hlrogge
Sep 20, 2008 11:54 pm
While you are reviewing, one point I've heard others make about JUnit is that the ignore annotation is very much geared to giving the runner an instruction,...
20907
Marvin Toll
y153446
Sep 20, 2008 12:41 pm
GTC announces the release of TestUtil v. 2.5. Support has been added for Unix (thank you Pawel Radzinski!). _Marvin TestUtil is a Java open source low-effort...
20906
James Abley
taboozizi
Sep 20, 2008 11:28 am
... Have you read Michael Feathers' book [1]? In my experience, a lot of people aren't test-infected and there is a lot of legacy code in the world, so a lot...