Skip to content

Commit

Permalink
Export-NUnitReport function was missing a close tag
Browse files Browse the repository at this point in the history
Failed test cases weren't closing their failure tag, which resulted in the whole file structure being thrown off.  (test-case elements were being nested inside other test-case elements, etc.)
  • Loading branch information
dlwyatt committed Aug 27, 2014
1 parent d82f635 commit 8f8a62a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Functions/TestResults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function Export-NUnitReport {
$XmlWriter.WriteStartElement("failure")
$xmlWriter.WriteElementString("message", $_.FailureMessage)
$XmlWriter.WriteElementString("stack-trace", $_.StackTrace)
$XmlWriter.WriteEndElement() # Close failure tag
}
$XmlWriter.WriteEndElement() #Close test-case tag
}
Expand Down

0 comments on commit 8f8a62a

Please sign in to comment.