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

Jenkins Maven project test reporting includes less than normal freestyle junit reporting.

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

      SimulatedTest output doesn't get picked up for the maven configured job. when going to http://..../testReport/com.mycompany.app/ only AppTest shows up.

      It does get picked up for the freestyle job. There isn't an easy way to modify the junit reporting for the maven style project.

          [JENKINS-19861] Jenkins Maven project test reporting includes less than normal freestyle junit reporting.

          Joshua Kolash added a comment -

          I upgraded to the latest maven 1.533 plugin instead of 1.529 and am still getting this issue.

          Joshua Kolash added a comment - I upgraded to the latest maven 1.533 plugin instead of 1.529 and am still getting this issue.

          Joshua,

          As a workaround, you can run the sim-test mojo before of maven-surfire-plugin:test.

          The SurfireArchiver is bounded to the execution of some specific test mojos (maven-surefire-plugin:test, maven-failsafe-plugin:integration-test, flexmojos-maven-plugin:test-run, etc), and is executed after the execution of these mojos. By the contrary, JUnitResultArchiver (used in your freestyle project) is executed when all the build is finished (including your sim-test mojo).

          Regards.

          Marcelo Rebasti

          Marcelo Rebasti added a comment - Joshua, As a workaround, you can run the sim-test mojo before of maven-surfire-plugin:test. The SurfireArchiver is bounded to the execution of some specific test mojos (maven-surefire-plugin:test, maven-failsafe-plugin:integration-test, flexmojos-maven-plugin:test-run, etc), and is executed after the execution of these mojos. By the contrary, JUnitResultArchiver (used in your freestyle project) is executed when all the build is finished (including your sim-test mojo). Regards. Marcelo Rebasti

          Joshua Kolash added a comment -

          Thanks Marcelo,

          This will do as a workaround. I guess this is an artifact of running the SurefireArchiver right after the mojo, rather than right after the phase the mojo was bound to. I'm not sure if that would be a good idea.

          Joshua Kolash added a comment - Thanks Marcelo, This will do as a workaround. I guess this is an artifact of running the SurefireArchiver right after the mojo, rather than right after the phase the mojo was bound to. I'm not sure if that would be a good idea.

            Unassigned Unassigned
            jkolash Joshua Kolash
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: