<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Is it really that hard? Lets assume you have a set of mutually
      exclusive test suites. They could be organized like this:<br>
      <br>
      -Dsuite=foo<br>
      -Dsuite=bar<br>
      -Dsuite=baz<br>
    </tt><tt>-Dsuite=...<br>
      <br>
      in maven this would look like<br>
      <br>
            &lt;activation&gt;<br>
              &lt;property&gt;<br>
                &lt;name&gt;suite&lt;/name&gt;<br>
                &lt;value&gt;foo&lt;/value&gt;<br>
              &lt;/property&gt;<br>
            &lt;/activation&gt;<br>
      <br>
      If 'foo' is the default (i.e. the smoke tests). You would also
      have profile that activates like this <br>
      <br>
    </tt><tt>      &lt;activation&gt;<br>
              &lt;property&gt;<br>
                &lt;name&gt;!suite&lt;/name&gt;<br>
              &lt;/property&gt;<br>
            &lt;/activation&gt;<br>
      <br>
      If the suites are organized my maven modules. You can AND them
      together with<br>
      <br>
      mvn -pl testsuite-foo,</tt><tt>testsuite-bar,</tt><tt>testsuite-baz,...<br>
      <br>
      It should always be possible to navigate to a particular module
      and run a subset of tests like this<br>
      <br>
      mvn -Dtest=osgi/*/*TestCase test<br>
      <br>
      cheers<br>
      -thomas<br>
    </tt><br>
    <br>
    <br>
    On 10/27/2011 06:20 PM, Ondrej Zizka wrote:
    <blockquote cite="mid:1319732405.1853.12.camel@lenovo" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="GENERATOR" content="GtkHTML/3.32.2">
      Ok, seems like QA will have to carry the burden of disabling smoke
      tests whenever they want to run anything else - because Maven's
      profile activation logic really sucks.<br>
      Fixing.<br>
      <br>
      Ondra<br>
      <br>
      <br>
      <br>
      On Thu, 2011-10-27 at 11:36 +0100, Kabir Khan wrote:
      <blockquote type="CITE">
        <pre>The smoke tests must be run as part of a standard build. Please fix.

If QE have other requirements, which are not possible to combine with the above requirement maybe they should look into using alternate poms or the antrun plugin or something.
On 27 Oct 2011, at 09:48, Thomas Diesler wrote:

&gt; Currently, the smoke tests don't run as part of the build. Is this really what you want?
&gt; 
&gt; <a moz-do-not-send="true" href="https://hudson.qa.jboss.com/hudson/view/JBossOSGi/job/jboss-as7-master/389/">https://hudson.qa.jboss.com/hudson/view/JBossOSGi/job/jboss-as7-master/389/</a>
&gt; 
&gt; -thomas
&gt; 
&gt; On 10/27/2011 06:17 AM, Stuart Douglas wrote:
&gt;&gt; I just just merged some changes to the test suite that QE requires for EAP (see below for a link to their requirements). As a result the manner in which the tests are run has changed slightly. 
&gt;&gt; 
&gt;&gt; Due to limitations in maven it is no longer possible to activate all tests using mvn install -DallTests, instead you should use either:
&gt;&gt; 
&gt;&gt; ./build.sh install -DallTests  - To do a full build with all tests
&gt;&gt; ./integration-tests.sh -DallTests - To just run all integration tests 
&gt;&gt; 
&gt;&gt; Running individual tests from an IDE or via mvn test -Dtest=MyTest should work as normal.
&gt;&gt; 
&gt;&gt; Ondej Zizka (in CC) has been the person working on these changes, so if you have any questions or comments he is the person to talk to.
&gt;&gt; 
&gt;&gt; Stuart
&gt;&gt; 
&gt;&gt; *<a moz-do-not-send="true" href="https://docspace.corp.redhat.com/docs/DOC-74146">https://docspace.corp.redhat.com/docs/DOC-74146</a>
&gt;&gt; *<a moz-do-not-send="true" href="https://docspace.corp.redhat.com/docs/DOC-69049">https://docspace.corp.redhat.com/docs/DOC-69049</a> 
&gt;&gt; *<a moz-do-not-send="true" href="https://github.com/jbossas/jboss-as/pull/491">https://github.com/jbossas/jboss-as/pull/491</a>
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; _______________________________________________
&gt;&gt; jboss-as7-dev mailing list
&gt;&gt; 
&gt;&gt; <a moz-do-not-send="true" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
&gt;&gt; <a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
&gt; 
&gt; -- 
&gt; xxxxxxxxxxxxxxxxxxxxxxxxxxxx
&gt; Thomas Diesler
&gt; JBoss OSGi Lead
&gt; JBoss, a division of Red Hat
&gt; xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
&gt; 
&gt; _______________________________________________
&gt; jboss-as7-dev mailing list
&gt; <a moz-do-not-send="true" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
&gt; <a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>


_______________________________________________
jboss-as7-dev mailing list
<a moz-do-not-send="true" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
</pre>
  </body>
</html>