Re: Run unit tests before commiting

2013-02-15 Thread Stephen Connolly
mvn clean test scm:commit -Dmessage=I am great On 15 February 2013 12:51, Alberto Ivo alberto...@gmail.com wrote: Hello, Nowadays When I change the code, I manually run the unit test (suite) and then commit using Eclipse IDE. But I would like to do it via Maven. The code can be committed

Re: Run unit tests before commiting

2013-02-15 Thread Alberto Ivo
I'm sorry.. I'm noob.. I didn't get it. Is there a way to do it inside the pom.xml? Ivo On Fri, Feb 15, 2013 at 11:15 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: mvn clean test scm:commit -Dmessage=I am great On 15 February 2013 12:51, Alberto Ivo alberto...@gmail.com

Re: Run unit tests before commiting

2013-02-15 Thread Baptiste MATHUS
Just bind the maven-scm-plugin with that goalconf (which actually seems to be checkin instead of commit) onto the right phase (here it may be test). Look at the Maven lifecycle to understand what a phase is http://maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#message(search for default

Re: Run unit tests before commiting

2013-02-15 Thread Stephen Connolly
OT. this blind man on a galloping horse cannot tell the exact scm goal names ;-) On 15 February 2013 15:41, Baptiste MATHUS m...@batmat.net wrote: Just bind the maven-scm-plugin with that goalconf (which actually seems to be checkin instead of commit) onto the right phase (here it may be

RE: Run unit tests before commiting

2013-02-15 Thread KARR, DAVID
-Original Message- From: Alberto Ivo [mailto:alberto...@gmail.com] Sent: Friday, February 15, 2013 4:52 AM To: Maven Users List Subject: Run unit tests before commiting Hello, Nowadays When I change the code, I manually run the unit test (suite) and then commit using Eclipse

Re: Run unit tests before commiting

2013-02-15 Thread Baptiste MATHUS
True. The hard part, you did, Luke ;-) 2013/2/15 Stephen Connolly stephen.alan.conno...@gmail.com OT. this blind man on a galloping horse cannot tell the exact scm goal names ;-) On 15 February 2013 15:41, Baptiste MATHUS m...@batmat.net wrote: Just bind the maven-scm-plugin with that

Re: Run unit tests before commiting

2013-02-15 Thread Alberto Ivo
Thanks, everyone! Ivo On Fri, Feb 15, 2013 at 2:10 PM, Baptiste MATHUS m...@batmat.net wrote: True. The hard part, you did, Luke ;-) 2013/2/15 Stephen Connolly stephen.alan.conno...@gmail.com OT. this blind man on a galloping horse cannot tell the exact scm goal names ;-) On 15

Re: Run unit tests before commiting

2013-02-15 Thread Mirko Friedenhagen
Alberto, you could bind to the phase verify as well, which will package your artifacts and runs integration-tests (e.g. started with the failsafe-plugin) additionally. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/