You might consider extending/changing/refactoring JUnit itself using github. There you can fork JUnit itself and submit your idea for inclusion for everyone....
Big Mike, Thanks for the info. I don't know that the system I have in mind will require any tweaks to JUnit. I think all of my code can run along side of it,...
David, In this particular case your technique would work. I wonder, when testing return values that are slightly more complicated, if this would start to fall...
Landon, Definitely take a close look at the failure messages from the standard assert methods, and also the assertThat method added in 4.4. Good luck, David...
Hi David, Did you gave thoughs to cases where one would like to exclude certain tests? E.g.: run all tests that are not in (a) certain category(s)? This is...
Sorry! The URL is http://github.com/KentBeck/junit/issues/#issue/37 (can the issue number change? I have memories of this being number 41). The title is:...
... For what it's worth, excluding tests is a very popular TestNG features. For example, I use it when a few tests are broken and need to remain so for a ...
... Georg, We came very close to adding an ExcludeCategories annotation. However, we decided to stay at a minimal feature set for Categories in the initial...
... For this particular use case, I've found @Ignore generally useful. I also really love Kevin Lawrence's idea of marking tests with bug numbers. He does it...
Hello, I use junit 4.4 and there is no chance to use a newer version of junit. I have a TestListener which extends RunListener. I overwrite the methode...
I second that the @Ignore is the way to go with this. What I do is define some String constants in a relevant class that defines the basic reasons (read...
... The problem with @Ignore is that 1) you need to specify it on all the methods you want to exclude and 2) it forces a recompilation. Being able to specify...
... This story makes sense to me if you have many tests in the broken group, and sometimes want to run all of them, and sometimes want to run none of them. Is...
... No, I never really run all the methods in the excluded groups, most of the time, their purpose is just to be excluded. When I want to start fixing the ...
Unfortunately, I don't know of a way to do that easily in any JUnit class. There's two possibilities I could think of as workarounds: 1) You can usually parse...
Georg, Unfortunately, your context got snipped: are you seconding the original Categories feature as presented, or one of the follow-on proposals later in the...
No idea! I didn't think negative votes were possible. I've voted it up to 0, and I'll ping the github administrators to see what's going on. Sorry... David...
Hello! you can also use Runtime.getRuntime().registerShutdownHook(...) to register a shutdown-hook that is run after junit is done. But I don't hink you can...
All, HEAD on github has two enhancements to the original category proposal: any class can be a category marker, and categories can be excluded from suites....
Hello All! I'm using JUnit 4.5 and I'm facing a problem with the EDT. I'm wondering if there is an easy way to create a custom Runner that will run my UI tests...
Hi Marcelo, What is the problem you are facing? Only access to Swing components needs to be done in the EDT, not the whole test. If you cannot use FEST, simply...
Hi David! I meant to second your statement # Got it. So we seem in agreement that excluded categories may be # useful, but a "broken" category is not the...
Hi Alex! Thank for the quick reply. The problem I was facing was because we're using Mockito, and it does not support mock setting and verification by ...
Hi all, I have this situation: A big interface "I" which is implemented by the "A" and "B" classes. I've solved the problem of wrote only one test for both...