Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-2244

Karma test failures do not fail the build on Jenkins and are not reporterd

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.0.0
    • None
    • Tiger Sprint 197

    Description

      Similar  to WPM-1138

      On Jenkins builds are run with Dmaven.test.failure.ignore to build all modules before collecting test failures. The new maven-frontend-plugin runs the tests in the test phase and does not fail the build on test failures.

       

      The frontend-maven-plugin does not report test failures so test failures will not be found in the build.

      Possible solutions:

      1. Add junit reporting to Karma. In Java the default reports is named ../target/surefire-reports/TEST-*.xml. Not clear if Jenkins uses a specific pattern to scan test result files.
      2. Fail the build if a test fails This can be done by adding configuration to the execute of run testSingleRun:
        <testFailureIgnore>false</testFailureIgnore>

       Likely need to be ported/backported to all relevant builds using the new plugin

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            abanck Arent-Jan Banck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: