New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Do not fail the Maven build for a failed test #534
Comments
Try this:
|
Thanks for a such a fast response! Here's my config: <plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
<installDirectory>target</installDirectory>
</configuration>
<executions>
... install-node-and-npm and <npm install> go here
<execution>
<id>npm test</id>
<phase>test</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>test</arguments>
</configuration>
</execution>
</executions>
</plugin> If my assumption is correct, to support this it would be enough not to throw EDIT |
@eirslett, any other idea? :) if junit fail some test it's just a warning but this failing whole build and that is not good :( |
I've just made a pull request that closes this issue by adding ubiquitous support for EDIT |
While the feature has been added, the opposite behavior is now broken i.e. the builds now never seem to fail, even with |
Even with the latest version of the plugin? |
I ran into this issue yesterday. The behavior does appear broken in 1.4 (failures during the test phase are always ignored). In 1.6 it works as expected. In these examples, I've introduced a failing test case that is run via Run a gulp build that finishes with exit code 1:
Run again with the
Also thanks to the contributor for helpful output like this:
Two small suggestions that I could open a PR for if you're willing @eirslett
|
When running
npm test
(for example) and if it fails, the whole Maven build will fail too.Would it be possible to make the plugin act differently for goals invoked during
test
andintegration-test
phases so that failures in those are only reported as test failures?If you can provide some guidance on if/how this can be achieved, I'd gladly take on the task of implementing it.
The text was updated successfully, but these errors were encountered: