maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@maven.org>
Subject new surefire goodies
Date Mon, 20 Sep 2004 03:54:28 GMT
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 


Mime
View raw message