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

[assembly: RequiresSTA] in NUnit test suites is not parsed correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      XP pro, Hudson ver. 1.386, Xunit 1.12, Nunit 1.12, NUnit 2.5.5.10112

      Description

      I'm generating xml files via nunit-console (%%f is the file name of the test assembly)

      ..\Tools\NUnit\bin\net-2.0\nunit-console "%%f" /framework=4.0.30319 /xml=NUnitResult_%%f.xml /exclude=device

      When using [assembly: RequiresSTA] in the test assembly, the xml file generated by the addon for JUnit doesn't contain any test information only one entry about RequiresSTA.

      Workaround for me was using a config file:

      <?xml version="1.0" encoding="utf-8" ?>
      <configuration>
      <configSections>
      <sectionGroup name="NUnit">
      <section type="System.Configuration.NameValueSectionHandler"
      name="TestRunner"></section>
      </sectionGroup>
      </configSections>
      <NUnit>
      <TestRunner>
      <add value="STA" key="ApartmentState"/>
      </TestRunner>
      </NUnit>
      </configuration>

      Anyway, a fix would be good.

        Activity

        flominator Flominator created issue -
        flominator Flominator made changes -
        Field Original Value New Value
        Attachment generated_by_nunit_console.txt [ 20142 ]
        flominator Flominator made changes -
        Component/s xunit [ 15636 ]
        Component/s nunit [ 15562 ]
        redsolo redsolo made changes -
        Assignee redsolo [ redsolo ] gbois [ gbois ]
        gbois Gregory Boissinot made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        gbois Gregory Boissinot made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            gbois Gregory Boissinot
            Reporter:
            flominator Flominator
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: