Skip to content

Commit

Permalink
Merge pull request #191 from ddumont/master
Browse files Browse the repository at this point in the history
Closes #72 Skip test with -Dmaven.test.skip=true
  • Loading branch information
klieber committed Aug 17, 2013
2 parents 6447ac2 + 6d2f654 commit af8a78b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,23 @@ public abstract class AbstractJasmineMojo extends AbstractMojo implements Jasmin
@Parameter(defaultValue="${project.build.directory}${file.separator}jasmine")
protected File jasmineTargetDir;


/**
* Skip the tests.
* Skip execution of tests.
*
* @since 1.1.0
* @see <a href="http://maven.apache.org/general.html#skip-test">http://maven.apache.org/general.html#skip-test</a>
*/
@Parameter(property="skipTests")
protected boolean skipTests;

/**
* Skip compilation and execution of tests.
*
* @since 1.3.1.3
* @see <a href="http://maven.apache.org/general.html#skip-test">http://maven.apache.org/general.html#skip-test</a>
*/
@Parameter(property="maven.test.skip")
protected boolean mvnTestSkip;

/**
* Halt the build on test failure.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/searls/jasmine/mojo/TestMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public TestMojo() {

@Override
public void run() throws Exception {
if(!this.skipTests) {
if(!this.skipTests && !this.mvnTestSkip) {
ServerManager serverManager = this.getServerManager();
try {
int port = serverManager.start();
Expand Down

0 comments on commit af8a78b

Please sign in to comment.