You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by Jason van Zyl <jv...@maven.org> on 2004/09/20 05:54:28 UTC

new surefire goodies

Howdy,

After much rigamarole the build works again on beaver and there's a new
version of surefire and accompanying plugin available.

Just added a test file reporter where reports for tests get stored in:

${basedir}/target/surefire-reports

If there are errors the stdOut/stdErr/stackTrace get written out for
that test to help debug the problem.

There is also a new parameter in the surefire plugin which allows
running a set of test from the CLI. Most useful is probably running a
single test:

m2 surefire:test -Dtest=FooTest

That will find FooTest.java anywhere among your tests.

You can also use things like *Foo* to find all matches among your tests
and you can also supply a list:

m2 surefire:test -Dtest=FooTest,*BarTest

Bob was trying to test a new version of Werkflow and became very annoyed
at not being to run a single test and view the text reports so there ya
go.

-- 
jvz.

Jason van Zyl
jason@maven.org
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


Re: new surefire goodies

Posted by Brett Porter <br...@apache.org>.
> m2 surefire:test -Dtest=FooTest

Do we want to have a convention on these? eg -Dsurefire.test=FooTest?

> Bob was trying to test a new version of Werkflow and became very annoyed
> at not being to run a single test and view the text reports so there ya
> go.

Make him learn to use an IDE! :)

- Brett