Skip to content

Commit

Permalink
More revert #572
Browse files Browse the repository at this point in the history
  • Loading branch information
eirslett committed Jul 18, 2017
1 parent e3a5acb commit 1808ce6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 62 deletions.
12 changes: 0 additions & 12 deletions README.md
Expand Up @@ -456,18 +456,6 @@ tag of an execution like this:
</configuration>
```

If you want to generally ignore tests run maven with the `-Dmaven.test.failure.ignore=true` flag, test/integration-test results will not stop the build.

**Ignoring other failures:** If you need to ignore other failures you can set that using the property `failOnError` in configuration tag of an execution like this:

```xml
<configuration>
<failOnError>true</failOnError>
</configuration>
```

If you want to ignore all failures run maven with the `-DfailOnError=true` flag.

#### Skipping Execution

Each frontend build tool and package manager allows skipping execution.
Expand Down
3 changes: 0 additions & 3 deletions frontend-maven-plugin/src/it/example project/package.json
Expand Up @@ -26,9 +26,6 @@
},
"scripts": {
"prebuild": "npm install",
"pre-test": "echo pre-integration-test-success",
"test": "return 1",
"post-test": "echo post-integration-test-success",
"build": "gulp"
}
}
45 changes: 0 additions & 45 deletions frontend-maven-plugin/src/it/example project/pom.xml
Expand Up @@ -104,51 +104,6 @@
</configuration>
</execution>

<!-- Integration Tests -->
<execution>
<id>npm-pre-integration-test</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run pre-test</arguments>
</configuration>
<phase>pre-integration-test</phase>
</execution>
<execution>
<id>npm-integration-test-failSafeTest</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run test</arguments>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
<phase>integration-test</phase>
</execution>
<execution>
<id>npm-integration-test-failOnError</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run test</arguments>
<failOnError>false</failOnError>
</configuration>
<phase>integration-test</phase>
</execution>
<execution>
<id>npm-post-integration-test</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run post-test</arguments>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
<phase>post-integration-test</phase>
</execution>

</executions>
</plugin>
</plugins>
Expand Down
2 changes: 0 additions & 2 deletions frontend-maven-plugin/src/it/example project/verify.groovy
Expand Up @@ -6,6 +6,4 @@ assert buildLog.contains('gulp runs as expected') : 'gulp failed to run as expec
assert buildLog.contains('Running against local jspm install.') : 'jspm failed to run as expected'
assert buildLog.contains('5 files lint free.') : 'grunt failed to run as expected'
assert buildLog.contains('Executed 1 of 1 SUCCESS') : 'karma failed to run as expected'
assert buildLog.contains('post-integration-test-success') : 'failOnError does not works as expected'
assert buildLog.contains('testFailureIgnore property is ignored in non test phases') : 'testFailureIgnore does not works as expected'
assert buildLog.contains('BUILD SUCCESS') : 'build was not successful'

0 comments on commit 1808ce6

Please sign in to comment.