[jboss-jira] [JBoss JIRA] Reopened: (AS7-856) Replace -DskipTests=true with -DallTests

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Fri May 27 05:50:00 EDT 2011


     [ https://issues.jboss.org/browse/AS7-856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlo de Wolf reopened AS7-856:
-------------------------------



Right now test resources in the sub-modules of testsuite2 are stale if -DallTests is not used. This means they can not be executed from within the IDE (or individually).

This is counter-intuitive from regular maven usage.
{{$ mvn clean install}} should leave you with a completely build environment. You could add other properties to exclude such test builds.

> Replace -DskipTests=true with -DallTests
> ----------------------------------------
>
>                 Key: AS7-856
>                 URL: https://issues.jboss.org/browse/AS7-856
>             Project: Application Server 7
>          Issue Type: Task
>            Reporter: Thomas Diesler
>            Assignee: Thomas Diesler
>             Fix For: 7.0.0.CR1
>
>
> Using skipTests as a flag has a negative side effect such that you cannot do
>  > mvn -Dtest=SomeTestCase test
> in an integration module any more. Instead you have to do
>  > mvn -DskipTests=false -Dtest=SomeTestCase test
> This is non-intuitive and non-standard. Instead I propose to use an 
> alternate switch like 'allTests' to turn on profiles which run the 
> complete set of tests. IMHO its ok to exclude entire (testsuite) modules 
> from the build (i.e. not to compile the tests) because compilation 
> errors show up in the IDE and Hudson anyway.
> I propose
> 1) By default, all normal modules and testsuite/smoke will be built in 
> the standard way
> (i.e. failing tests will fail the build)
> 2) By adding -DskipTests=true tests that would normally be executed are skipped
> 3) By adding -DallTests all modules that contain tests will be executed. In Hudson you could add -fae
> which fails the build at the end - so catch all failing tests in a single run
> It boils down to whether you want to compile tests that you don't want to execute.
> IMHO that's not necessary in day to day work - Hudson can catch this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list