maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonas Berlin (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SUREFIRE-1835) failsafe plugin's verify goal does not honor `mvn --fail-at-end`
Date Sat, 22 Aug 2020 11:07:00 GMT

     [ https://issues.apache.org/jira/browse/SUREFIRE-1835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonas Berlin updated SUREFIRE-1835:
-----------------------------------
    Description: 
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.

  was:
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:

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.


> 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.3.4#803005)

Mime
View raw message