You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/04/26 19:10:11 UTC
svn commit: r651838 -
/maven/plugins/trunk/maven-invoker-plugin/src/site/fml/faq.fml
Author: bentmann
Date: Sat Apr 26 10:10:09 2008
New Revision: 651838
URL: http://svn.apache.org/viewvc?rev=651838&view=rev
Log:
o Extended FAQ to mention possibility to assert build failures
Modified:
maven/plugins/trunk/maven-invoker-plugin/src/site/fml/faq.fml
Modified: maven/plugins/trunk/maven-invoker-plugin/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/site/fml/faq.fml?rev=651838&r1=651837&r2=651838&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/site/fml/faq.fml (original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/site/fml/faq.fml Sat Apr 26 10:10:09 2008
@@ -51,5 +51,18 @@
</p>
</answer>
</faq>
+ <faq id="question2">
+ <question>How can I assert that the build of an IT project fails?</question>
+ <answer>
+ <p>
+ Sometimes you might want to test that error conditions are properly dealt with, i.e. fail a build. To assert
+ a failure for a particular IT project, put the following setting into the properties file denoted by the
+ plugin's <a href="run-mojo.html#invokerPropertiesFile"><code>invokerPropertiesFile</code></a> parameter:
+ <pre>invoker.buildResult=failure</pre>
+ Now, the failure of the IT build will be interpreted as a test success. Likewise, a successful IT build will
+ be considered a test failure.
+ </p>
+ </answer>
+ </faq>
</part>
-</faqs>
\ No newline at end of file
+</faqs>