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

xUnit don't work with NUnit test since 1.25

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      since 1.25 xUnit fails build:
      UnitTest# Hermes version 2.3.9.24513 (dynamic) from 10/27/2011 12:37:35 PM
      NUnit version 2.5.3.0
      Copyright (C) 2002-2009 Charlie Poole.
      Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
      Copyright (C) 2000-2002 Philip Craig.
      All Rights Reserved.

      Runtime Environment -
      OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
      CLR Version: 2.0.50727.3623 ( Net 2.0.50727.3623 )

      ProcessModel: Default DomainUsage: Multiple
      Execution Runtime: net-2.0.50727.3623
      ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
      Tests run: 754, Errors: 0, Failures: 0, Inconclusive: 0, Time: 8.187238 seconds
      Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0

      [WARNINGS] Parsing warnings in console log with parsers [MSBuild]
      [WARNINGS] MSBuild : Found 0 warnings.
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing NUnit-Version N/A (default)
      [xUnit] [WARNING] - Can't create the path C:\Hudson\workspace\HermesSharpSvn2008Release\generatedJUnitFiles. Maybe the directory already exists.
      [xUnit] [ERROR] - The plugin hasn't been performed correctly: There are some problems during the conversion into JUnit reports: null
      Build step 'Publish testing tools result report' changed build result to FAILURE
      Build step 'Publish testing tools result report' marked build as failure

      I have to downgrade xUnit 1.26 to 1.24 to fix build:
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing NUnit-Version N/A (default)
      [xUnit] [WARNING] - Can't create the path C:\Hudson\workspace\HermesSharpSvn2008Release\generatedJUnitFiles. Maybe the directory already exists.
      [xUnit] [INFO] - [NUnit-Version N/A (default)] - 1 test report file(s) were found with the pattern '**/hermes-test.xml' relative to 'C:\Hudson\workspace\HermesSharpSvn2008Release' for the testing framework 'NUnit-Version N/A (default)'.
      [xUnit] [INFO] - Stopping recording.

      Not sure where to get additional information about error

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          Which Java version do you use?

          Show
          gbois Gregory Boissinot added a comment - Which Java version do you use?
          Hide
          igorkostenko Igor Kostenko added a comment -

          Master (SuSE 10 x64):
          Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
          Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)

          Slave (Windows 2003 x64):
          JRE version: 6.0_21-b07
          Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode windows-amd64 )

          I see an exception in slave log:
          Oct 30, 2011 7:27:49 AM com.thalesgroup.hudson.plugins.xunit.service.XUnitService warningSystemLogger
          WARNING: [xUnit] - Can't create the path C:\Hudson\workspace\HermesSharpSvn2008Release\generatedJUnitFiles. Maybe the directory already exists.
          java.lang.NullPointerException
          at com.thalesgroup.dtkit.metrics.hudson.api.type.TestType.getDescriptor(TestType.java:49)
          at com.thalesgroup.hudson.plugins.xunit.service.XUnitToolInfo.getToolName(XUnitToolInfo.java:69)
          at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:82)
          at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37)
          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
          at hudson.remoting.UserRequest.perform(UserRequest.java:114)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:270)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:58)
          at java.lang.Thread.run(Unknown Source)
          java.lang.NullPointerException
          at com.thalesgroup.dtkit.metrics.hudson.api.type.TestType.getDescriptor(TestType.java:49)
          at com.thalesgroup.hudson.plugins.xunit.service.XUnitToolInfo.getToolName(XUnitToolInfo.java:69)
          at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:82)
          at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37)
          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
          at hudson.remoting.UserRequest.perform(UserRequest.java:114)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:270)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:58)
          at java.lang.Thread.run(Unknown Source)

          Show
          igorkostenko Igor Kostenko added a comment - Master (SuSE 10 x64): Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) Slave (Windows 2003 x64): JRE version: 6.0_21-b07 Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode windows-amd64 ) I see an exception in slave log: Oct 30, 2011 7:27:49 AM com.thalesgroup.hudson.plugins.xunit.service.XUnitService warningSystemLogger WARNING: [xUnit] - Can't create the path C:\Hudson\workspace\HermesSharpSvn2008Release\generatedJUnitFiles. Maybe the directory already exists. java.lang.NullPointerException at com.thalesgroup.dtkit.metrics.hudson.api.type.TestType.getDescriptor(TestType.java:49) at com.thalesgroup.hudson.plugins.xunit.service.XUnitToolInfo.getToolName(XUnitToolInfo.java:69) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:82) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException at com.thalesgroup.dtkit.metrics.hudson.api.type.TestType.getDescriptor(TestType.java:49) at com.thalesgroup.hudson.plugins.xunit.service.XUnitToolInfo.getToolName(XUnitToolInfo.java:69) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:82) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java
          src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitConversionService.java
          src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitReportProcessingService.java
          src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitToolInfo.java
          src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitTransformer.java
          src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitValidationService.java
          src/test/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitReportProcessingServiceTest.java
          src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitTransformerTest.java
          http://jenkins-ci.org/commit/xunit-plugin/05f1a21e8a54d64110817d08b222bce953ce72de
          Log:
          Fixed JENKINS-11552

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitConversionService.java src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitReportProcessingService.java src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitToolInfo.java src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitTransformer.java src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitValidationService.java src/test/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitReportProcessingServiceTest.java src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitTransformerTest.java http://jenkins-ci.org/commit/xunit-plugin/05f1a21e8a54d64110817d08b222bce953ce72de Log: Fixed JENKINS-11552
          Hide
          gbois Gregory Boissinot added a comment -

          Thank your very much for your inputs.
          I was a regression introduced in 1.25.
          I fixed it.
          It should be OK now.
          Please could you upgrade to 1.27?

          Show
          gbois Gregory Boissinot added a comment - Thank your very much for your inputs. I was a regression introduced in 1.25. I fixed it. It should be OK now. Please could you upgrade to 1.27?
          Hide
          igorkostenko Igor Kostenko added a comment -

          Yes, It's fine now, thank you

          Show
          igorkostenko Igor Kostenko added a comment - Yes, It's fine now, thank you

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              igorkostenko Igor Kostenko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: