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

Using hudson with surefire for integration-tests using selenium fails

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Platform: All, OS: All

      We are using selenium and cargo with maven and surefire for our integration
      testing. Since the surefire tests are executed in the integration-test phase but
      hudson search for the results after the test phase, hudson fails the tests
      without running them.

      pom.xml:
      ...snip...
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.4</version>
      <configuration>
      <skip>true</skip>
      </configuration>
      <executions>
      <execution>
      <phase>integration-test</phase>
      <goals>
      <goal>test</goal>
      </goals>
      <configuration>
      <skip>false</skip>
      </configuration>
      </execution>
      </executions>
      </plugin>
      ...snip...

      Log-Output:
      ...
      [INFO] [compiler:testCompile]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [surefire:test]
      [INFO] Tests are skipped.
      [HUDSON] Recording test results
      [HUDSON] Archiving
      /root/.hudson/jobs/endion-asp/workspace/trunk/integration-test/pom.xml
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Test reports were found but none of them are new. Did tests run?
      For example,
      /root/.hudson/jobs/endion-asp/workspace/trunk/integration-test/target/surefire-reports/TEST-TestSuite.xml
      is 36 seconds old

      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      hudson.tasks.junit.AbortException: Test reports were found but none of them are
      new. Did tests run?
      For example,
      /root/.hudson/jobs/endion-asp/workspace/trunk/integration-test/target/surefire-reports/TEST-TestSuite.xml
      is 36 seconds old

      at hudson.tasks.junit.TestResult.parse(TestResult.java:111)
      at hudson.tasks.junit.TestResult.<init>(TestResult.java:72)
      at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:71)
      at
      hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:507)
      at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:250)
      at
      hudson.maven.agent.PluginManagerInterceptor$1MojoConfig.callPost(PluginManagerInterceptor.java:104)
      at
      hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:136)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at
      org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:42)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at hudson.maven.agent.Main.launch(Main.java:97)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:129)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:446)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:392)
      at hudson.remoting.UserRequest.perform(UserRequest.java:69)
      at hudson.remoting.UserRequest.perform(UserRequest.java:23)
      at hudson.remoting.Request$2.run(Request.java:200)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 49 seconds
      [INFO] Finished at: Thu Feb 28 11:49:36 CET 2008
      [INFO] Final Memory: 19M/35M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      finished: FAILURE

            Unassigned Unassigned
            knisterpeter knisterpeter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: