[jboss-jira] [JBoss JIRA] Commented: (AS7-856) Replace -DskipTests=true with -DallTests
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Fri May 27 08:17:01 EDT 2011
[ https://issues.jboss.org/browse/AS7-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604941#comment-12604941 ]
Carlo de Wolf commented on AS7-856:
-----------------------------------
A temporary work-around is:
{{$ mvn -DallTests -DskipTests=true clean install}}
It only shows how illogical the property usage has become.
> 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