Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14207

Show NUnit stacktrace when reviewing why a test failed

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • .NET, Windows
    • None
    • 0
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      At the moment Bamboo only displays the <message> part of the <failure> but not the <stack-trace>.

      Example:

      <test-case name="Euphoria.ActiveDirectory.Tests.ComputerTests.EqualsTest" executed="True" result="Failure" success="False" time="1.156" asserts="1">
                                  <categories>
                                    <category name="CI" />
                                  </categories>
                                  <failure>
                                    <message><![CDATA[SetUp : System.UnauthorizedAccessException : Access is denied.
      
      TearDown :   Expected: not null
        But was:  null
      ]]></message>
                                    <stack-trace><![CDATA[at System.DirectoryServices.AccountManagement.ADStoreCtx.Insert(Principal p)
      at System.DirectoryServices.AccountManagement.Principal.Save()
      at Euphoria.ActiveDirectory.Computer.Save() in d:\Source\CastleBravo\Euphoria.ActiveDirectory\Computer.cs:line 841
      at Euphoria.ActiveDirectory.Tests.ComputerTests.Init() in d:\Source\CastleBravo\Euphoria.ActiveDirectory.Tests\ComputerTests.cs:line 93
      --TearDown
      at Euphoria.ActiveDirectory.Tests.ComputerTests.Teardown() in d:\Source\CastleBravo\Euphoria.ActiveDirectory.Tests\ComputerTests.cs:line 135
      ]]></stack-trace>
                                  </failure>
                                </test-case>
      

      Documentation: https://github.com/nunit/docs/wiki/Test-Result-XML-Format#stack-trace

            Unassigned Unassigned
            b7521880e905 Markus Korbel
            Votes:
            9 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: