Q7

Option to control whether to fail maven build in case of Q7 test failures

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.21, 1.3.4
  • Fix Version/s: 1.2.22, 1.3.5
  • Component/s: Runner
  • Labels:
  • Test Mode:
    Manual

Description

We are executing our tests in Jenkins using your plugin. When the Q7 tests don't pass, maven build ends with ERROR status and the Jenkins build is then marked as Failed.
Is there any possibility to make the build end up with SUCCESS even if the tests are failing (as we want our Jenkins job to end in Unstable state rather than in Failed)

Activity

Hide
komaz added a comment - 18/Jul/13 9:58 PM

Since in some parts we emulate surefire plugin, it might be good idea to 'steal' its property – http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore

Show
komaz added a comment - 18/Jul/13 9:58 PM Since in some parts we emulate surefire plugin, it might be good idea to 'steal' its property – http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore
Hide
komaz added a comment - 19/Jul/13 6:12 PM

To ignore test failures use either properties:

<properties>
  <maven.test.failure.ignore>true</maven.test.failure.ignore>
</properties>

Or q7-maven-plugin configuration:

<build>
  <plugins>
    <plugin>
      <groupId>com.xored.q7</groupId>
      <artifactId>q7-maven-plugin</artifactId>
      <version>1.3.5-RC2</version>
      <extensions>true</extensions>
      <configuration>
        <testFailureIgnore>true</testFailureIgnore>
        ...
Show
komaz added a comment - 19/Jul/13 6:12 PM To ignore test failures use either properties:
<properties>
  <maven.test.failure.ignore>true</maven.test.failure.ignore>
</properties>
Or q7-maven-plugin configuration:
<build>
  <plugins>
    <plugin>
      <groupId>com.xored.q7</groupId>
      <artifactId>q7-maven-plugin</artifactId>
      <version>1.3.5-RC2</version>
      <extensions>true</extensions>
      <configuration>
        <testFailureIgnore>true</testFailureIgnore>
        ...

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    18/Jul/13 9:50 PM
    Updated:
    19/Jul/13 6:12 PM
    Resolved:
    19/Jul/13 6:12 PM