[jboss-as7-dev] Testsuite execution

Brian Stansberry brian.stansberry at redhat.com
Mon May 16 10:24:12 EDT 2011


The way this all works is based off the surefire plugin's <skipTests> 
config.

<skipTests>${some.property}</skipTests>

So, we'd need a property that has a value of 'false' in order to cause 
these tests to run. So I just kept it simple and stuck with the standard 
surefire -DskipTests.

On 5/16/11 5:04 AM, Kabir Khan wrote:
> Sounds good. For 3) something like -DallTests=true vaguely sounds better but I don't know if maven has any equivalent of the horrible ant conditional properties stuff
> On 15 May 2011, at 03:16, Brian Stansberry wrote:
>
>> I'd like to get feedback on changes to the testsuite found in
>> https://github.com/bstansberry/jboss-as/commit/efe2051753f6b79788d05156784665e02672613c
>>
>> I'll be adding a bunch of integration tests that launch a domain, but
>> before pushing those I wanted to ensure they weren't run every time
>> someone did a build. That led to a general effort to simplify how we can
>> execute the 3 main build cases -- a standard build with some smoke
>> tests, a no-test fast build, and a full test run. The above commit
>> results in the following behavior:
>>
>> 1) By default, all normal modules and testsuite modules will be built
>> (so test compilation issues introduced by code changes will be caught)
>> but the only tests that will be executed are:
>>
>> a) the tests in non-testsuite modules
>> b) the tests in testsuite/smoke
>>
>> 2) By adding -DskipTests=true, no tests will be executed (although
>> they'll still compile).
>>
>> 3) By adding -DskipTests=false the integration tests in testsuite2,
>> testsuite/integration and the webservices module will be enabled. So
>> that results in a full testsuite run (except for the currently empty
>> benchmark and stress test modules).
>>
>> The testsuite2, testsuite/integration and the webservices module also
>> have testFailureIgnore set to true, which means failures in one of the
>> many modules will not fail the build, allowing the full set of tests to
>> run. A test failure in a non-testsuite module or in testsuite/smoke will
>> fail the build.
>>
>> --
>> Brian Stansberry
>> Principal Software Engineer
>> JBoss by Red Hat
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>


-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list