You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2021/12/13 20:27:00 UTC

[jira] [Commented] (SUREFIRE-1835) failsafe plugin's verify goal does not honor `mvn --fail-at-end`

    [ https://issues.apache.org/jira/browse/SUREFIRE-1835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458689#comment-17458689 ] 

Slawomir Jaranowski commented on SUREFIRE-1835:
-----------------------------------------------

It can be helpful MNG-7351 - probably wrong exception is used.

> failsafe plugin's verify goal does not honor `mvn --fail-at-end`
> ----------------------------------------------------------------
>
>                 Key: SUREFIRE-1835
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1835
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin
>    Affects Versions: 2.20.1, 3.0.0-M4
>         Environment: Maven 3.6.3
>            Reporter: Jonas Berlin
>            Priority: Minor
>
> If I run {color:#ff0000}{{mvn --fail-at-end verify}}{color} on a multi-module project with the following configuration in several modules
> {{<plugin>}}
>  {{  <artifactId>maven-failsafe-plugin</artifactId>}}
>  {{  <version>3.0.0-M4</version>}}
>  {{  <executions>}}
>  {{    <execution>}}
>  {{      <goals>}}
>  {{        <goal>integration-test</goal>}}
>  {{        <goal>verify</goal>}}
>  {{      </goals>}}
>  {{    </execution>}}
>  {{  </executions>}}
>  {{  <configuration>}}
>  {{    <includes>}}
>  {{      <include>${integration.test.glob}</include>}}
>  {{    </includes>}}
>  {{  </configuration>}}
>  {{</plugin>}}
> h2. Expected behaviour:
> Due to the {{{color:#FF0000}--fail-at-end{color}}} flag, tests of all modules are run regardless of failures and after that the maven build fails in case of failures.
> h2. Actual behaviour:
> The "verify" goal halts the build at the first module with a problem. If I add <testFailureIgnore>true</testFailureIgnore> in the <configuration> section, it *does* run tests of all modules, but then the maven build exits with success regardless of failures.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)