We've got one.  It uses the SurefireReportParser from the
maven-surefire-report-plugin to parse the reports.  I'll have to get
permission from my manager to send it, but that's the basic idea.

-Jeff

Jeffrey Hagelberg, Software Engineer
XMeta Development
IBM Software Group
Phone: 978-899-2055 T/L:276-2055)
Email:[email protected]


                                                                       
  From:       Kalle Korhonen <[email protected]>              
                                                                       
  To:         Maven Users List <[email protected]>                
                                                                       
  Date:       05/18/2009 04:00 PM                                      
                                                                       
  Subject:    Re: Anyone have a plugin to check if the surefire tests pass?
                                                                       





Why don't you just write a unit test base class that runs Jetty embedded?
If
you store the server in a static attribute and start it in @BeforeClass (or
similar) conditionally if hasn't been started before, you'll save the
restart costs between each test. As a bonus, these integration tests are
easily runnable from your IDE. This is exactly what I do.

Kalle


On Mon, May 18, 2009 at 9:16 AM, Stephen Connolly <
[email protected]> wrote:

> Hey, before you think this guy is crazy, surefire will do that for you...
>
> pre-integration-test: jetty:run daemon=true
> integration-test: surefire:test testFailureIgnore=true
> post-integration-test: jetty:stop
> verify: ______:______
>
> so that I can run my integration tests and tidy-up afterwards and then
fail
> the build after the tidy-up...
>
> yes, yes, yes I know about putting the tests in a separate module and all
> that jazz... but this is in some ways a bit cleaner
>
> -Stephen
>

Reply via email to