Maven surefire timeout treated as successful build

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: maven-plugin
    • None
    • Environment:
      linux x64, Jenkins LTS 2.60.3, Maven Integration plugin 2.17

      If a project configures surefire to timeout after a reasonable time usingĀ  -Dsurefire.exitTimeout=180 -Dsurefire.timeout=180 and the tests time out you'll see

      [ERROR] There was a timeout or other error in the fork
      [JENKINS] Recording test results

      However Jenkins decides that the tests succeeded and completes the build and all success actions.

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      This condition can be simulated by setting an artificially low surefire timeout.

            Assignee:
            Unassigned
            Reporter:
            Mike Duigou
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: