You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ja...@barclayscapital.com on 2004/09/22 11:45:41 UTC
Checking if tests are running under maven
Is there any way at runtime for a test to know if it is running under maven
(as opposed to having been invoked in the IDE)?
Why? Some of the developers on my team comment out tests during development
to only run a sub-set (as Eclipse doesn't seem to let you just run a single
test easily any other way)
I'd like to have some facility that ensures all the tests always get run
when the official maven testing is happening, regardless of what the
developer's been up to.
thanks
James
------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.
Internet communications are not secure and therefore the Barclays
Group does not accept legal responsibility for the contents of this
message. Although the Barclays Group operates anti-virus programmes,
it does not accept responsibility for any damage whatsoever that is
caused by viruses being passed. Any views or opinions presented are
solely those of the author and do not necessarily represent those of the
Barclays Group. Replies to this email may be monitored by the Barclays
Group for operational or business reasons.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Checking if tests are running under maven
Posted by Martijn Dashorst <ma...@dashorst.dds.nl>.
James.Shute@barclayscapital.com wrote:
>Why? Some of the developers on my team comment out tests during development
>to only run a sub-set (as Eclipse doesn't seem to let you just run a single
>test easily any other way)
>
>
Right click on the test, select run, select run JUnit-test
If you wish to run all tests in a package, right click on the package
and select the previous run-run Junit test.
If you wish to re-run the test, simply click on the run button in the
java perspective (or the debug button).
To select a previous launched test-set, select the 'arrow' down next to
the run button on the toolbar, and select the testset.
Hope to help,
Martijn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org