Re: Annotations Support with Cactus 1.7.2/JUnit 4.2/ServletTestRunner
"james brook" <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, Bit of a shame. I did find a way of getting it to run the tests. All I did was create another test that extends TestCase (JUnit 3.8 format) without any annotations. Then implemented a suite() method that returns the Tests having used the JUnit4TestAdapter to load all the tests. I was then able to use the ServletTestRunner to call this suite. The only downside to this approach is that the report generated doesn't include the TestName - which is a real shame. Perhaps it would be worth updating the Cactus FAQ to explain it doesn't support annotations so that other people don't waste their time. Cheers, James Brook >From: Kazuhito SUGURI <[email protected]> >Reply-To: "Cactus Users List" <[email protected]> >To: [email protected] >Subject: Re: Annotations Support with Cactus 1.7.2/JUnit >4.2/ServletTestRunner >Date: Wed, 17 Jan 2007 20:57:38 +0900 (JST) > >Hi James, > >In article <[email protected]>, >Wed, 17 Jan 2007 11:33:27 +0000, >"james brook" <[email protected]> wrote: >jmbrook> Tests that have been developed in the old junit style (extending >TestCase >jmbrook> and having methods called testXXXX) work but tests using the >annotations >jmbrook> don't seem to found. I get a "No tests could be found" exception. >jmbrook> >jmbrook> Should this work? > >No. >ATM, Cactus doesn't support annotations. >---- >Kazuhito SUGURI > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] > _________________________________________________________________ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com