Re: Adding @NonParameterized
David Saff <[email protected]> Tue, 19 Jul 2011 14:56:07 -0400
| Newsgroups | gmane.comp.java.junit.devel |
|---|---|
| Message-ID | <CACj8BuOE7SsOHmrPdRkzeFfcX_jfQRr1tmYvSOJwLmbx3ns+-Q@mail.gmail.com> |
I've gotten a bit too buried in day work to fully answer this. Two points: 1) I've opened an issue on github, so this doesn't get lost: https://github.com/KentBeck/junit/issues/264 2) Also, if you'd like to contribute a patched version of Parameterized to the junit.contrib project, I'd be happy to work with you on that. David Saff On Thu, Jul 14, 2011 at 3:29 PM, Marius Kruger <[email protected]> wrote: > On 27 June 2011 17:40, David Saff <[email protected]> wrote: >> >> Good point. >> >> Here's how I'm thinking about moving forward: we currently have @Rule, >> which provides a way to override the rules for _running_ a method, for >> _every @Test_ method in the class. =A0I'm considering a similar >> construct, which will allow overriding: >> >> 1) Which methods trigger tests >> 2) How many tests per method >> 3) Validation of test methods >> 4) Test-instance creation >> 5) Test-method invoking >> >> Given this, it should be possible to enable something very close to >> @NonParameterized as a drop-in Rule-like object, rather than as a core >> modification to the overall Parameterized runner. > > It's a bit abstract for me, I can not imagine/picture how my use case will > look like with this. With the above features it sounds like it will be qu= ite > useful. > If you like you can make a sudo example to show how you imagine it to be > used. > >> >> One issue: I can't think of a name for this new construct. =A0Suggestions >> welcome. > > @TestController > @TestOrchestrator > @TestManager > > One problem that I noticed with @RunWith(JUnitParamsRunner.class) tests is > that > IDE support lags a bit or maybe its a bug, but from eclipse I can't re-ru= n a > single method or one of it's permutations or jump to its location by > double-clicking on it in the junit panel. It works fine with=A0@RunWith(v= alue > =3D Parameterized.class) which I'm glad to see. > Before I knew about this, I made my own suite implementation to sort of do > this, > and with some tweaking I was able to get eclipse to be able to re-run tho= se > too. > -- > <>< Marius ><> > > ---------------------------------------------------------------------------= --- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/