Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22534

maven ignore test failures when pom declares buildExtension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None

      to reproduce :

      • create a maven project using default archetype.
      • setup maven to build it
      • change test to fail : `assertTrue(false)`
      • jenkins detects test failure
      • add build extension co.leantechniques:maven-buildtime-extension:1.0 to pom.xml
      • confirm on command line maven still detect test failures :
        -------------------------------------------------------
         T E S T S
        -------------------------------------------------------
        Running foo.AppTest
        Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE!
        testApp(foo.AppTest)  Time elapsed: 0.008 sec  <<< FAILURE!
        junit.framework.AssertionFailedError
            at junit.framework.Assert.fail(Assert.java:47)
            at junit.framework.Assert.assertTrue(Assert.java:20)
            at junit.framework.Assert.assertTrue(Assert.java:27)
            at foo.AppTest.testApp(AppTest.java:36)
        
      • run same project on jenkins :
        -------------------------------------------------------
         T E S T S
        -------------------------------------------------------
        Running foo.AppTest
        Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
        
        Results :
        
        Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
        

            Unassigned Unassigned
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: