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

Testresult doesn't show test name in case the package is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • Jenkins 1.652
      XUnit Plugin and a few others, but not related to this
      Windows 8
      Chrome / Mozilla / Firefox newest versions
      Plugins all up to date

      Under Test Results it shows like this:

      I See every Test that has run, but no Testnames, so i dont know which Test actually failed/succeed/skipped.

      The Result XML that gets generated looks good and shows me the Testnames + Results like expected

      <?xml version="1.0" encoding="utf-8"?>
      <assemblies>
        <assembly name="xyz" environment="32-bit .NET 4.0.30319.42000 [collection-per-class, parallel (8 threads)]" test-framework="xUnit.net 2.1.0.3179" run-date="2016-02-29" run-time="10:17:15" config-file="xyz" total="4" passed="2" failed="0" skipped="2" time="46.081" errors="0">
          <errors />
          <collection total="4" passed="2" failed="0" skipped="2" name="xyz" time="45.641">
            <test name="CashFactorSetInValidValues" type="XUnit_DataManager_Tests.DataManagerGuiGeneral" method="CashFactorSetInValidValues" time="22.7359448" result="Pass">
              <traits>
                <trait name="DataManager" value="General" />
                <trait name="General" value="CashFactor" />
              </traits>
            </test>
            <test name="TestCurrencySetAll" type="XUnit_DataManager_Tests.DataManagerGuiGeneral" method="TestCurrencySetAll" time="0" result="Skip">
              <traits>
                <trait name="DataManager" value="General" />
                <trait name="General" value="Currency" />
              </traits>
              <reason><![CDATA[Eine Ausnahme vom Typ "Xunit.SkipException" wurde ausgelöst.]]></reason>
            </test>
            <test name="TestCurrencyAllAvailable" type="XUnit_DataManager_Tests.DataManagerGuiGeneral" method="TestCurrencyAllAvailable" time="0" result="Skip">
              <traits>
                <trait name="DataManager" value="General" />
                <trait name="General" value="Currency" />
              </traits>
              <reason><![CDATA[Eine Ausnahme vom Typ "Xunit.SkipException" wurde ausgelöst.]]></reason>
            </test>
            <test name="CashfactorSetValidValues" type="XUnit_DataManager_Tests.DataManagerGuiGeneral" method="CashfactorSetValidValues" time="14.8607297" result="Pass">
              <traits>
                <trait name="DataManager" value="General" />
                <trait name="General" value="CashFactor" />
              </traits>
            </test>
          </collection>
        </assembly>
      </assemblies>
      

      I am using the new SkippableFact Library from XUnit, that allows to use [SkippableFact] rather than [Fact]. All this SkippableFacts doesnt show testnames in the execution of a jenkins build.

      Not sure about the Priority, as it doesnt really block us, we get the Results, but it is very confusing and we only see the real Result in the XML that gets generated.

            nfalco Nikolas Falco
            dlemberger Dominik Lemberger
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: