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

Test reports were found but none of them are new. Did tests run?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Could you please elaborate on what does this mean?
      We get this message when 'Publish JUnit test result report' is checked and
      'svn/test-report/*.xml' specified. Here is the console output:

      started
      Updating http://host/project/main/svn/trunk/project
      At revision 54
      no change for http://host/project/main/svn/trunk/project since the previous build
      [svn] $ /usr/share/ant/bin/ant clean archive test
      Buildfile: build.xml

      clean:
      [delete] Deleting directory /var/opt/hudson/jobs/Project/workspace/svn/dist
      [delete] Deleting directory
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.ear
      [delete] Deleting directory
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.war
      [delete] Deleting directory
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar
      [delete] Deleting directory
      /var/opt/hudson/jobs/Project/workspace/svn/test-report
      [delete] Deleting 34 files from
      /var/opt/hudson/jobs/Project/workspace/svn/test-build

      init:
      [mkdir] Created dir:
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar
      [mkdir] Created dir:
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.ear
      [mkdir] Created dir:
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.war
      [mkdir] Created dir: /var/opt/hudson/jobs/Project/workspace/svn/dist

      compile:
      [javac] Compiling 14 source files to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar

      copyclasses:

      jar:
      [copy] Copying 1 file to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar
      [copy] Copying 1 file to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar/META-INF
      [copy] Copying 1 file to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar/META-INF
      [copy] Copying 1 file to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.jar

      war:
      [copy] Copying 18 files to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.war
      [copy] Copying 5 files to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.war/WEB-INF
      [copy] Copying 10 files to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.war/WEB-INF/lib
      [copy] Copying 1 file to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.war/WEB-INF/classes

      ear:
      [copy] Copying 13 files to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.ear
      [copy] Copying 2 files to
      /var/opt/hudson/jobs/Project/workspace/svn/exploded-archives/project.ear/META-INF

      archive:
      [jar] Building jar:
      /var/opt/hudson/jobs/Project/workspace/svn/dist/project.jar
      [jar] Building jar:
      /var/opt/hudson/jobs/Project/workspace/svn/dist/project.war
      [jar] Building jar:
      /var/opt/hudson/jobs/Project/workspace/svn/dist/project.ear

      compiletest:
      [javac] Compiling 16 source files to
      /var/opt/hudson/jobs/Project/workspace/svn/test-build

      copytestclasses:

      buildtest:
      [copy] Copying 14 files to
      /var/opt/hudson/jobs/Project/workspace/svn/test-build
      [copy] Copying 1 file to
      /var/opt/hudson/jobs/Project/workspace/svn/test-build/META-INF
      [copy] Copying 1 file to /var/opt/hudson/jobs/Project/workspace/svn/test-build
      [copy] Copying 1 file to /var/opt/hudson/jobs/Project/workspace/svn/test-build

      test:
      [testng] [Parser] Running:
      [testng] /var/opt/hudson/jobs/Project/workspace/svn/test-build/ProjectTest.xml

      [testng] ===============================================
      [testng] Suite1
      [testng] Total tests run: 3, Failures: 0, Skips: 0
      [testng] ===============================================

      BUILD SUCCESSFUL
      Total time: 3 seconds
      Recording test results
      Test reports were found but none of them are new. Did tests run?
      finished: FAILURE

        Attachments

          Activity

          Hide
          alex_yanchenko alex_yanchenko added a comment -

          ok, the way to make it work was to specify *Test.xml

          Show
          alex_yanchenko alex_yanchenko added a comment - ok, the way to make it work was to specify *Test.xml
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Improved error diagnostics in 1.116.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Improved error diagnostics in 1.116.
          Hide
          kkumarc Krishna Kumar added a comment -

          Hi,
          We are facing same issue here with build getting red with the following exception

          [JENKINS] Recording test results
          hudson.AbortException: Test reports were found but none of them are new. Did tests run?

          We are using Jenkins version 1.591

          Any workaround for this?

          Show
          kkumarc Krishna Kumar added a comment - Hi, We are facing same issue here with build getting red with the following exception [JENKINS] Recording test results hudson.AbortException: Test reports were found but none of them are new. Did tests run? We are using Jenkins version 1.591 Any workaround for this?
          Hide
          markhu Mark Hudson added a comment -

          Given the improved diagnostic message, I added an action to remove the stale *.xml files before re-running tests. (I guess the build system was so efficient that it detected the results were the same and did not re-write the files.)

          Show
          markhu Mark Hudson added a comment - Given the improved diagnostic message, I added an action to remove the stale *.xml files before re-running tests. (I guess the build system was so efficient that it detected the results were the same and did not re-write the files.)

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex_yanchenko alex_yanchenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: