RE: Command line output when running JUnit 4 test suite
I've set useFile to false, and haven't set redirectTestOutputToFile (but it defaults to false). Nord, James-2 wrote: > > Peter, > > Could it be you have redirectTestOutputToFile set to true? > > http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#redirectTestOutputToFile > -- View this message in context: http://old.nabble.com/Command-line-output-when-running-JUnit-4-test-suite-tp28786362p28807935.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Command line output when running JUnit 4 test suite
Peter, Could it be you have redirectTestOutputToFile set to true? http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#redirectTestOutputToFile /James -Original Message- From: Peter Niederwieser [mailto:pnied...@gmail.com] Sent: 06 June 2010 22:22 To: users@maven.apache.org Subject: Re: Command line output when running JUnit 4 test suite klauer wrote: > > The Maven Surefire plugin allows you to explicitly set a single test or > set of tests using wildcard matching: > I'm aware of -Dtest, but that's not what I want. klauer wrote: > And as for your "better command line output", why not just use the > command line > to output the test right there: > mvn test -Dtest=MyTest; cat > target/surefire-reports/com.thingMyTest.txt > This will only give me feedback (plus lots of noise) once the whole suite has completed, which is exactly what I'm trying to avoid. Cheers, Peter -- View this message in context: http://old.nabble.com/Command-line-output-when-running-JUnit-4-test-suite-tp28786362p28793392.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ** - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Command line output when running JUnit 4 test suite
klauer wrote: > > The Maven Surefire plugin allows you to explicitly set a single test or > set of tests using wildcard matching: > I'm aware of -Dtest, but that's not what I want. klauer wrote: > And as for your "better command line output", why not just use the > command line > to output the test right there: > mvn test -Dtest=MyTest; cat > target/surefire-reports/com.thingMyTest.txt > This will only give me feedback (plus lots of noise) once the whole suite has completed, which is exactly what I'm trying to avoid. Cheers, Peter -- View this message in context: http://old.nabble.com/Command-line-output-when-running-JUnit-4-test-suite-tp28786362p28793392.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Command line output when running JUnit 4 test suite
The Maven Surefire plugin allows you to explicitly set a single test or set of tests using wildcard matching: http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html <http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html>And as for your "better command line output", why not just use the command line to output the test right there: mvn test -Dtest=MyTest; cat target/surefire-reports/com.thingMyTest.txt as you can easily get the output right back from the test in target/surefire-reports -Nick On Fri, Jun 4, 2010 at 21:50, Peter Niederwieser wrote: > > Is there a way to get better command line output when running a JUnit 4 > test > suite with Surefire? I'd like to get the same output as when running test > classes directly, but I only get the "Running ..." and "Tests run: ..." > output once for the whole suite, and failure output only appears after the > whole suite (comprised of more than hundred test classes) has finished. > This > means I have to wait much longer until I get feedback. > > Cheers, > Peter > -- > View this message in context: > http://old.nabble.com/Command-line-output-when-running-JUnit-4-test-suite-tp28786362p28786362.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Command line output when running JUnit 4 test suite
Is there a way to get better command line output when running a JUnit 4 test suite with Surefire? I'd like to get the same output as when running test classes directly, but I only get the "Running ..." and "Tests run: ..." output once for the whole suite, and failure output only appears after the whole suite (comprised of more than hundred test classes) has finished. This means I have to wait much longer until I get feedback. Cheers, Peter -- View this message in context: http://old.nabble.com/Command-line-output-when-running-JUnit-4-test-suite-tp28786362p28786362.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org