Activiti
  1. Activiti
  2. ACT-572

Maven "check" profile states successful build when there are test-failures

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Number of attachments :
      0

      Description

      On some environments, test-failures don't cause the mvn -Pcheck clean install to fail, the build just continues:

      Running org.activiti.standalone.testing.ActivitiRuleJunit4Test
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.18 sec <<< FAILURE!
      Running org.activiti.standalone.testing.ActivitiTestCaseTest
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE!

      Results :

      Tests in error:
      ruleUsageExample(org.activiti.standalone.testing.ActivitiRuleJunit4Test)
      testSimpleProcess(org.activiti.standalone.testing.ActivitiTestCaseTest)

      Tests run: 491, Failures: 0, Errors: 2, Skipped: 0

      [INFO] [jar:jar

      {execution: default-jar}

      ]
      [INFO] Building jar: /activiti/workspace/activiti/modules/activiti-engine/target/activiti-engine-5.2-SNAPSHOT.jar
      [INFO] Preparing source:jar
      [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
      [INFO] [bundle:cleanVersions

      {execution: default}

      ]
      ....

      [INFO] [install:install

      {execution: default-install}

      ]
      [INFO] Installing /activiti/workspace/activiti/modules/activiti-cxf/target/activiti-cxf-5.2-SNAPSHOT.jar to /Users/fheremans/.m2/repository/org/activiti/activiti-cxf/5.2-SNAPSHOT/activiti-cxf-5.2-SNAPSHOT.jar
      [INFO] Installing /activiti/workspace/activiti/modules/activiti-cxf/target/activiti-cxf-5.2-SNAPSHOT-sources.jar to /Users/fheremans/.m2/repository/org/activiti/activiti-cxf/5.2-SNAPSHOT/activiti-cxf-5.2-SNAPSHOT-sources.jar
      [INFO]
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] ------------------------------------------------------------------------
      [INFO] Activiti .............................................. SUCCESS [1.269s]
      [INFO] Activiti - Engine ..................................... SUCCESS [1:19.129s]
      [INFO] Activiti - Spring ..................................... SUCCESS [14.352s]
      [INFO] Activiti - Cycle ...................................... SUCCESS [12.797s]
      [INFO] Activiti - Rest ....................................... SUCCESS [5.328s]
      [INFO] Activiti - Cxf ........................................ SUCCESS [2.328s]
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 minute 56 seconds
      [INFO] Finished at: Tue Jan 25 10:10:15 CET 2011
      [INFO] Final Memory: 85M/554M
      [INFO] ------------------------------------------------------------------------

        Activity

        Hide
        Joram Barrez added a comment -

        Known issue for surefire 2.7: SUREFIRE-674 - Build does not fail when tests have errors

        Show
        Joram Barrez added a comment - Known issue for surefire 2.7: SUREFIRE-674 - Build does not fail when tests have errors
        Hide
        Joram Barrez added a comment -

        Resolved by upgrading to surefire 2.7.1

        Show
        Joram Barrez added a comment - Resolved by upgrading to surefire 2.7.1

          People

          • Assignee:
            Joram Barrez
            Reporter:
            Frederik Heremans
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: