Mark, I think either of these could be a nice addition, assuming others agree.
As I'm often forgetful as well, I just enabled them by default in my Netbeans IDE. I'm sure other IDEs (Eclipse, IDEA) also allow you to configure what the IDE runs when you say "Package" or "Build" (or whatever the IDE wants to call it). So, for NetBeans, I've told it when I select "Build", I want it to run 'mvn package -Dmaven.test.skip=false" rather than the default setting. However, I wouldn't be against having it auto-enable if you have a particular file or Environment variable set -- that way it's also auto-enabled from your command-line (if that's how you prefer to do things). - Tim On 9/2/2010 2:28 PM, Mark H. Wood wrote: > On Thu, Sep 02, 2010 at 09:37:04AM -0500, Tim Donohue wrote: >> I agree with Robin's point. We need to change our Committer practices >> so that we make sure to run through the Unit Tests *before* committing >> code (and we also need to be updating the Unit Tests when adding new >> code/methods). I'll write myself a note to bring this up at our next >> Developers Meeting. > > I think we need to change the way the tests are activated. As long as > this is subject to a manual operation I'm very likely to forget it. > It's wrapped in a profile now, but that only replaces: > > mvn -DsomethingIAlwaysForget > > with: > > mvn -PsomethingIAlwaysForget > > I'd like to see this profile activated by something which can be > persistent, like a flag file: > > <profile> > <id>skiptests</id> > <activation> > <activeByDefault>false</activeByDefault> > <file> > <missing>development.flag</missing> > </file> > </activation> > <properties> > <maven.test.skip>true</maven.test.skip> > </properties> > </profile> > > or the absence of an environment variable: > > <profile> > <id>skiptests</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>!env.DEVELOPMENT</name> > </property> > </activation> > <properties> > <maven.test.skip>true</maven.test.skip> > </properties> > </profile> > > Comments? > > > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > > > > _______________________________________________ > Dspace-devel mailing list > Dspace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-devel ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel