Permalink
Browse files

fix to skip tests and version change

  • Loading branch information...
1 parent fe103e2 commit c6da1141de054fb60bb4b8c5b57a66c2f68553c3 @andrerigon andrerigon committed with Oct 21, 2010
View
2 pom.xml
@@ -9,7 +9,7 @@
<artifactId>rspec-maven-plugin</artifactId>
<name>RSpec Maven Plugin</name>
<packaging>maven-plugin</packaging>
- <version>1.0-beta-10</version>
+ <version>1.0-beta-11</version>
<contributors />
<dependencies>
<dependency>
View
13 src/main/java/org/codehaus/mojo/rspec/AbstractRspecMojo.java
@@ -6,10 +6,11 @@
/**
* Just holds mojo properties to make Mojo real code cleaner
+ *
* @author andre
- *
+ *
*/
-public abstract class AbstractRspecMojo extends AbstractMojo{
+public abstract class AbstractRspecMojo extends AbstractMojo {
/**
* The classpath elements of the project being tested.
*
@@ -63,4 +64,12 @@
* @parameter expression="false"
*/
protected boolean skipTests;
+
+ /**
+ * Allows the server startup to be skipped.
+ *
+ * @parameter expression="${maven.test.skip}" default-value="false"
+ * @since 1.0-beta-2
+ */
+ protected boolean skip;
}
View
2 src/main/java/org/codehaus/mojo/rspec/RspecRunnerMojo.java
@@ -34,7 +34,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}
private boolean canRun() throws MojoExecutionException {
- if (skipTests) {
+ if (skipTests || skip) {
getLog().info("Skipping RSpec tests");
return false;
}

0 comments on commit c6da114

Please sign in to comment.