You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2008/01/09 01:30:29 UTC
svn commit: r610242 - /maven/site/trunk/src/site/fml/general.fml
Author: vsiveton
Date: Tue Jan 8 16:30:28 2008
New Revision: 610242
URL: http://svn.apache.org/viewvc?rev=610242&view=rev
Log:
MNG-1500: document the running of a single test or group of tests using the -Dtest=FooTest option
Submitted by: Kev Jackson
Reviewed by: Vincent Siveton
o applied
Modified:
maven/site/trunk/src/site/fml/general.fml
Modified: maven/site/trunk/src/site/fml/general.fml
URL: http://svn.apache.org/viewvc/maven/site/trunk/src/site/fml/general.fml?rev=610242&r1=610241&r2=610242&view=diff
==============================================================================
--- maven/site/trunk/src/site/fml/general.fml (original)
+++ maven/site/trunk/src/site/fml/general.fml Tue Jan 8 16:30:28 2008
@@ -207,12 +207,20 @@
</faq>
<faq id="skip-test">
- <question>How to skip the tests</question>
+ <question>How do I skip the tests?</question>
<answer>
Add the parameter <code>-Dmaven.test.skip=true</code> in the command line
</answer>
</faq>
+ <faq id="run-one-test">
+ <question>How can I run a single unit test?</question>
+ <answer>
+ Use the parameter <code>-Dtest=MyTest</code> at the command line.
+ NB: do not specify the entire package (org.apache.x.y.MyTest)
+ </answer>
+ </faq>
+
<faq id="special-characters-site">
<question>Handle special characters in site</question>
<answer>
@@ -271,7 +279,7 @@
</faq>
<faq id="test-property-name">
- <question>Why does Maven compile my test classes but don't run them?</question>
+ <question>Maven compiles my test classes but doesn't run them?</question>
<answer>
<p>
Tests are run by the surefire plugin. The surefire plugin can be configured to run certain test classes and