You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Dan Fabulich <da...@fabulich.com> on 2007/12/20 23:23:23 UTC

maven.test.skip.exec

Jason Chaffee wrote:

> You can compile test classes and still use maven.test.skip=true if you
> have the compliler plugin configured as followings:
>
>
>
>        <plugin>
>          <artifactId>maven-compiler-plugin</artifactId>
>          <configuration>
>            <skip>false</skip>
>          </configuration>
>        </plugin>

This works, but I think using -Dmaven.test.skip.exec=true is a better 
practice...  skipExec does exactly what you want and not anything else.

More generally, I want to try to spread awareness of maven.test.skip.exec 
and advocate that people use it instead of maven.test.skip.  When we 
suggest skipping tests, we should always try to suggest using 
maven.test.skip.exec instead of just maven.test.skip.

[Arguably, very few people want maven.test.skip to skip test-compile, 
since compiling the tests is rarely time consuming or failure prone... 
long term, we might want to disable that property association on the test 
compiler.]

-Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by nicolas de loof <ni...@apache.org>.
2007/12/21, Stephen Connolly <st...@gmail.com>:
>
> It's a hack when 95% of people have need for these changes


On those 95% many use the allready available maven.test.skip.exec, that is
ONLY a convenience way to skip tests, but this is NOT recommended. So what
is discussed here is only a shortcut !




and
> everyone does it differently and then we're back to the bad parts of
> ANT...
> (IMHO what is wrong with ant is that everyone has a completely
> different build.xml and you need to figure it out every time.)
>
> On Dec 21, 2007 8:40 AM, nicolas de loof <ni...@apache.org> wrote:
> > I agree with brett.
> > POM properties can be used as shortcut for plugins configuration, to
> enable
> > profiles or for such use cases. They are not hacks.
> >
> >
> > 2007/12/21, Brett Porter <br...@apache.org>:
> >
> > >
> > > If you document it for the users of the build, I wouldn't consider
> > > that a hack :)
> > >
> > > On 21/12/2007, at 7:34 PM, Stephen Connolly wrote:
> > >
> > > > That's hacking your pom.xml, and hacks are bad ;-)
> > > >
> > > > On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
> > > >> There's always the one shot:
> > > >>
> > > >> <artifactId>maven-surefire-configuration</artifactId>
> > > >> <configuration>
> > > >>   <skipExec>${cheat}</skipExec>
> > > >> </configuration>
> > > >>
> > > >> ...
> > > >>
> > > >> <properties>
> > > >>   <cheat>false</cheat>
> > > >> </properties>
> > > >>
> > > >> ...
> > > >>
> > > >> then:
> > > >> mvn -Dcheat=true test
> > > >>
> > > >>
> > > >> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
> > > >>
> > > >>> cool.
> > > >>>
> > > >>> It's not just me, but hoards of developers who's hands will now be
> > > >>> saved from RSI due to excessive typing
> > > >>>
> > > >>> ;-)
> > > >>>
> > > >>> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
> > > >>>> Stephen Connolly wrote:
> > > >>>>
> > > >>>>> Can we make the property shorter and easier to remember...
> > > >>>>>
> > > >>>>> that's what I liked about the -Dtest=0 hack
> > > >>>>
> > > >>>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
> > > >>>> parameter to
> > > >>>> replace skipExec). ;-)
> > > >>>>
> > > >>>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this
> > > >>>> has
> > > >>>> always bothered me. :-)
> > > >>>>
> > > >>>> "mvn -DskipTests" is short enough, right?  I thought about making
> > > >>>> it
> > > >>>> "skipTest" but I thought it might sound like we were skipping the
> > > >>>> entire
> > > >>>> "test" lifecycle phase...?
> > > >>>>
> > > >>>>
> > > >>>> -Dan
> > > >>>>
> > > >>>>
> ---------------------------------------------------------------------
> > > >>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > >>>> For additional commands, e-mail: dev-help@maven.apache.org
> > > >>>>
> > > >>>>
> > > >>>
> > > >>>
> ---------------------------------------------------------------------
> > > >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > >>> For additional commands, e-mail: dev-help@maven.apache.org
> > > >>>
> > > >>
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > >> For additional commands, e-mail: dev-help@maven.apache.org
> > > >>
> > > >>
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: dev-help@maven.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: maven.test.skip.exec

Posted by Ralph Goers <Ra...@dslextreme.com>.
If you have a super pom that all your projects inherit from then this 
solution is workable. You probably want one so that your organization 
can configure things like the enforcer plugin to make sure all your 
projects follow the same rules. But if you can't do that then this 
solution doesn't work very well.

Ralph

Stephen Connolly wrote:
> It's a hack when 95% of people have need for these changes and
> everyone does it differently and then we're back to the bad parts of
> ANT...
> (IMHO what is wrong with ant is that everyone has a completely
> different build.xml and you need to figure it out every time.)
>
> On Dec 21, 2007 8:40 AM, nicolas de loof <ni...@apache.org> wrote:
>   
>> I agree with brett.
>> POM properties can be used as shortcut for plugins configuration, to enable
>> profiles or for such use cases. They are not hacks.
>>
>>
>> 2007/12/21, Brett Porter <br...@apache.org>:
>>
>>     
>>> If you document it for the users of the build, I wouldn't consider
>>> that a hack :)
>>>
>>> On 21/12/2007, at 7:34 PM, Stephen Connolly wrote:
>>>
>>>       
>>>> That's hacking your pom.xml, and hacks are bad ;-)
>>>>
>>>> On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
>>>>         
>>>>> There's always the one shot:
>>>>>
>>>>> <artifactId>maven-surefire-configuration</artifactId>
>>>>> <configuration>
>>>>>   <skipExec>${cheat}</skipExec>
>>>>> </configuration>
>>>>>
>>>>> ...
>>>>>
>>>>> <properties>
>>>>>   <cheat>false</cheat>
>>>>> </properties>
>>>>>
>>>>> ...
>>>>>
>>>>> then:
>>>>> mvn -Dcheat=true test
>>>>>
>>>>>
>>>>> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
>>>>>
>>>>>           
>>>>>> cool.
>>>>>>
>>>>>> It's not just me, but hoards of developers who's hands will now be
>>>>>> saved from RSI due to excessive typing
>>>>>>
>>>>>> ;-)
>>>>>>
>>>>>> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
>>>>>>             
>>>>>>> Stephen Connolly wrote:
>>>>>>>
>>>>>>>               
>>>>>>>> Can we make the property shorter and easier to remember...
>>>>>>>>
>>>>>>>> that's what I liked about the -Dtest=0 hack
>>>>>>>>                 
>>>>>>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
>>>>>>> parameter to
>>>>>>> replace skipExec). ;-)
>>>>>>>
>>>>>>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this
>>>>>>> has
>>>>>>> always bothered me. :-)
>>>>>>>
>>>>>>> "mvn -DskipTests" is short enough, right?  I thought about making
>>>>>>> it
>>>>>>> "skipTest" but I thought it might sound like we were skipping the
>>>>>>> entire
>>>>>>> "test" lifecycle phase...?
>>>>>>>
>>>>>>>
>>>>>>> -Dan
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>>>
>>>>>>             
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>>
>>>>>
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
>>>       
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Stephen Connolly <st...@gmail.com>.
It's a hack when 95% of people have need for these changes and
everyone does it differently and then we're back to the bad parts of
ANT...
(IMHO what is wrong with ant is that everyone has a completely
different build.xml and you need to figure it out every time.)

On Dec 21, 2007 8:40 AM, nicolas de loof <ni...@apache.org> wrote:
> I agree with brett.
> POM properties can be used as shortcut for plugins configuration, to enable
> profiles or for such use cases. They are not hacks.
>
>
> 2007/12/21, Brett Porter <br...@apache.org>:
>
> >
> > If you document it for the users of the build, I wouldn't consider
> > that a hack :)
> >
> > On 21/12/2007, at 7:34 PM, Stephen Connolly wrote:
> >
> > > That's hacking your pom.xml, and hacks are bad ;-)
> > >
> > > On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
> > >> There's always the one shot:
> > >>
> > >> <artifactId>maven-surefire-configuration</artifactId>
> > >> <configuration>
> > >>   <skipExec>${cheat}</skipExec>
> > >> </configuration>
> > >>
> > >> ...
> > >>
> > >> <properties>
> > >>   <cheat>false</cheat>
> > >> </properties>
> > >>
> > >> ...
> > >>
> > >> then:
> > >> mvn -Dcheat=true test
> > >>
> > >>
> > >> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
> > >>
> > >>> cool.
> > >>>
> > >>> It's not just me, but hoards of developers who's hands will now be
> > >>> saved from RSI due to excessive typing
> > >>>
> > >>> ;-)
> > >>>
> > >>> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
> > >>>> Stephen Connolly wrote:
> > >>>>
> > >>>>> Can we make the property shorter and easier to remember...
> > >>>>>
> > >>>>> that's what I liked about the -Dtest=0 hack
> > >>>>
> > >>>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
> > >>>> parameter to
> > >>>> replace skipExec). ;-)
> > >>>>
> > >>>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this
> > >>>> has
> > >>>> always bothered me. :-)
> > >>>>
> > >>>> "mvn -DskipTests" is short enough, right?  I thought about making
> > >>>> it
> > >>>> "skipTest" but I thought it might sound like we were skipping the
> > >>>> entire
> > >>>> "test" lifecycle phase...?
> > >>>>
> > >>>>
> > >>>> -Dan
> > >>>>
> > >>>> ---------------------------------------------------------------------
> > >>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > >>>> For additional commands, e-mail: dev-help@maven.apache.org
> > >>>>
> > >>>>
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > >>> For additional commands, e-mail: dev-help@maven.apache.org
> > >>>
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: dev-help@maven.apache.org
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by nicolas de loof <ni...@apache.org>.
I agree with brett.
POM properties can be used as shortcut for plugins configuration, to enable
profiles or for such use cases. They are not hacks.


2007/12/21, Brett Porter <br...@apache.org>:
>
> If you document it for the users of the build, I wouldn't consider
> that a hack :)
>
> On 21/12/2007, at 7:34 PM, Stephen Connolly wrote:
>
> > That's hacking your pom.xml, and hacks are bad ;-)
> >
> > On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
> >> There's always the one shot:
> >>
> >> <artifactId>maven-surefire-configuration</artifactId>
> >> <configuration>
> >>   <skipExec>${cheat}</skipExec>
> >> </configuration>
> >>
> >> ...
> >>
> >> <properties>
> >>   <cheat>false</cheat>
> >> </properties>
> >>
> >> ...
> >>
> >> then:
> >> mvn -Dcheat=true test
> >>
> >>
> >> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
> >>
> >>> cool.
> >>>
> >>> It's not just me, but hoards of developers who's hands will now be
> >>> saved from RSI due to excessive typing
> >>>
> >>> ;-)
> >>>
> >>> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
> >>>> Stephen Connolly wrote:
> >>>>
> >>>>> Can we make the property shorter and easier to remember...
> >>>>>
> >>>>> that's what I liked about the -Dtest=0 hack
> >>>>
> >>>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
> >>>> parameter to
> >>>> replace skipExec). ;-)
> >>>>
> >>>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this
> >>>> has
> >>>> always bothered me. :-)
> >>>>
> >>>> "mvn -DskipTests" is short enough, right?  I thought about making
> >>>> it
> >>>> "skipTest" but I thought it might sound like we were skipping the
> >>>> entire
> >>>> "test" lifecycle phase...?
> >>>>
> >>>>
> >>>> -Dan
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: dev-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: dev-help@maven.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: maven.test.skip.exec

Posted by Stephen Connolly <st...@gmail.com>.
Yeah, except when they move onto a different project and are wondering
why it does not work any more... (so it's a hack and a hack is a hack.
now we are just left arguing over how many angels can dance on the
head of a pin)

At least SUREFIRE-417 will cure that problem.

If it walks like a duck, quacks like a duck and tastes like a duck,
it's a duck... but unfortunately there is no such test for chicken and
you are always left wondering is this cat?

On Dec 21, 2007 8:37 AM, Brett Porter <br...@apache.org> wrote:
> If you document it for the users of the build, I wouldn't consider
> that a hack :)
>
>
> On 21/12/2007, at 7:34 PM, Stephen Connolly wrote:
>
> > That's hacking your pom.xml, and hacks are bad ;-)
> >
> > On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
> >> There's always the one shot:
> >>
> >> <artifactId>maven-surefire-configuration</artifactId>
> >> <configuration>
> >>   <skipExec>${cheat}</skipExec>
> >> </configuration>
> >>
> >> ...
> >>
> >> <properties>
> >>   <cheat>false</cheat>
> >> </properties>
> >>
> >> ...
> >>
> >> then:
> >> mvn -Dcheat=true test
> >>
> >>
> >> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
> >>
> >>> cool.
> >>>
> >>> It's not just me, but hoards of developers who's hands will now be
> >>> saved from RSI due to excessive typing
> >>>
> >>> ;-)
> >>>
> >>> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
> >>>> Stephen Connolly wrote:
> >>>>
> >>>>> Can we make the property shorter and easier to remember...
> >>>>>
> >>>>> that's what I liked about the -Dtest=0 hack
> >>>>
> >>>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
> >>>> parameter to
> >>>> replace skipExec). ;-)
> >>>>
> >>>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this
> >>>> has
> >>>> always bothered me. :-)
> >>>>
> >>>> "mvn -DskipTests" is short enough, right?  I thought about making
> >>>> it
> >>>> "skipTest" but I thought it might sound like we were skipping the
> >>>> entire
> >>>> "test" lifecycle phase...?
> >>>>
> >>>>
> >>>> -Dan
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: dev-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: dev-help@maven.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Brett Porter <br...@apache.org>.
If you document it for the users of the build, I wouldn't consider  
that a hack :)

On 21/12/2007, at 7:34 PM, Stephen Connolly wrote:

> That's hacking your pom.xml, and hacks are bad ;-)
>
> On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
>> There's always the one shot:
>>
>> <artifactId>maven-surefire-configuration</artifactId>
>> <configuration>
>>   <skipExec>${cheat}</skipExec>
>> </configuration>
>>
>> ...
>>
>> <properties>
>>   <cheat>false</cheat>
>> </properties>
>>
>> ...
>>
>> then:
>> mvn -Dcheat=true test
>>
>>
>> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
>>
>>> cool.
>>>
>>> It's not just me, but hoards of developers who's hands will now be
>>> saved from RSI due to excessive typing
>>>
>>> ;-)
>>>
>>> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
>>>> Stephen Connolly wrote:
>>>>
>>>>> Can we make the property shorter and easier to remember...
>>>>>
>>>>> that's what I liked about the -Dtest=0 hack
>>>>
>>>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
>>>> parameter to
>>>> replace skipExec). ;-)
>>>>
>>>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this  
>>>> has
>>>> always bothered me. :-)
>>>>
>>>> "mvn -DskipTests" is short enough, right?  I thought about making  
>>>> it
>>>> "skipTest" but I thought it might sound like we were skipping the
>>>> entire
>>>> "test" lifecycle phase...?
>>>>
>>>>
>>>> -Dan
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Stephen Connolly <st...@gmail.com>.
That's hacking your pom.xml, and hacks are bad ;-)

On Dec 21, 2007 6:51 AM, Brett Porter <br...@apache.org> wrote:
> There's always the one shot:
>
> <artifactId>maven-surefire-configuration</artifactId>
> <configuration>
>    <skipExec>${cheat}</skipExec>
> </configuration>
>
> ...
>
> <properties>
>    <cheat>false</cheat>
> </properties>
>
> ...
>
> then:
> mvn -Dcheat=true test
>
>
> On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:
>
> > cool.
> >
> > It's not just me, but hoards of developers who's hands will now be
> > saved from RSI due to excessive typing
> >
> > ;-)
> >
> > On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
> >> Stephen Connolly wrote:
> >>
> >>> Can we make the property shorter and easier to remember...
> >>>
> >>> that's what I liked about the -Dtest=0 hack
> >>
> >> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"
> >> parameter to
> >> replace skipExec). ;-)
> >>
> >> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this has
> >> always bothered me. :-)
> >>
> >> "mvn -DskipTests" is short enough, right?  I thought about making it
> >> "skipTest" but I thought it might sound like we were skipping the
> >> entire
> >> "test" lifecycle phase...?
> >>
> >>
> >> -Dan
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Brett Porter <br...@apache.org>.
There's always the one shot:

<artifactId>maven-surefire-configuration</artifactId>
<configuration>
   <skipExec>${cheat}</skipExec>
</configuration>

...

<properties>
   <cheat>false</cheat>
</properties>

...

then:
mvn -Dcheat=true test

On 21/12/2007, at 5:46 PM, Stephen Connolly wrote:

> cool.
>
> It's not just me, but hoards of developers who's hands will now be
> saved from RSI due to excessive typing
>
> ;-)
>
> On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
>> Stephen Connolly wrote:
>>
>>> Can we make the property shorter and easier to remember...
>>>
>>> that's what I liked about the -Dtest=0 hack
>>
>> Just for you, I've filed SUREFIRE-417 (Make new "skipTests"  
>> parameter to
>> replace skipExec). ;-)
>>
>> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this has
>> always bothered me. :-)
>>
>> "mvn -DskipTests" is short enough, right?  I thought about making it
>> "skipTest" but I thought it might sound like we were skipping the  
>> entire
>> "test" lifecycle phase...?
>>
>>
>> -Dan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Stephen Connolly <st...@gmail.com>.
cool.

It's not just me, but hoards of developers who's hands will now be
saved from RSI due to excessive typing

;-)

On Dec 21, 2007 3:35 AM, Dan Fabulich <da...@fabulich.com> wrote:
> Stephen Connolly wrote:
>
> > Can we make the property shorter and easier to remember...
> >
> > that's what I liked about the -Dtest=0 hack
>
> Just for you, I've filed SUREFIRE-417 (Make new "skipTests" parameter to
> replace skipExec). ;-)
>
> I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this has
> always bothered me. :-)
>
> "mvn -DskipTests" is short enough, right?  I thought about making it
> "skipTest" but I thought it might sound like we were skipping the entire
> "test" lifecycle phase...?
>
>
> -Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Dan Fabulich <da...@fabulich.com>.
Stephen Connolly wrote:

> Can we make the property shorter and easier to remember...
>
> that's what I liked about the -Dtest=0 hack

Just for you, I've filed SUREFIRE-417 (Make new "skipTests" parameter to 
replace skipExec). ;-)

I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this has 
always bothered me. :-)

"mvn -DskipTests" is short enough, right?  I thought about making it 
"skipTest" but I thought it might sound like we were skipping the entire 
"test" lifecycle phase...?

-Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven.test.skip.exec

Posted by Dan Fabulich <da...@fabulich.com>.
Stephen Connolly wrote:

> Can we make the property shorter and easier to remember...
>
> that's what I liked about the -Dtest=0 hack

Just for you, I've filed SUREFIRE-417 (Make new "skipTests" parameter to 
replace skipExec). ;-)

I've got to fix SUREFIRE-416 anyway, and I'd forgotten that this has 
always bothered me. :-)

"mvn -DskipTests" is short enough, right?  I thought about making it 
"skipTest" but I thought it might sound like we were skipping the entire 
"test" lifecycle phase...?

-Dan

Re: maven.test.skip.exec

Posted by Stephen Connolly <st...@gmail.com>.
Can we make the property shorter and easier to remember...

that's what I liked about the -Dtest=0 hack

-Stephen

On Dec 20, 2007 10:23 PM, Dan Fabulich <da...@fabulich.com> wrote:
> Jason Chaffee wrote:
>
> > You can compile test classes and still use maven.test.skip=true if you
> > have the compliler plugin configured as followings:
> >
> >
> >
> >        <plugin>
> >          <artifactId>maven-compiler-plugin</artifactId>
> >          <configuration>
> >            <skip>false</skip>
> >          </configuration>
> >        </plugin>
>
> This works, but I think using -Dmaven.test.skip.exec=true is a better
> practice...  skipExec does exactly what you want and not anything else.
>
> More generally, I want to try to spread awareness of maven.test.skip.exec
> and advocate that people use it instead of maven.test.skip.  When we
> suggest skipping tests, we should always try to suggest using
> maven.test.skip.exec instead of just maven.test.skip.
>
> [Arguably, very few people want maven.test.skip to skip test-compile,
> since compiling the tests is rarely time consuming or failure prone...
> long term, we might want to disable that property association on the test
> compiler.]
>
> -Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org