Skip to content

Commit

Permalink
change xml output to use namespace and testfixture instead of powersh…
Browse files Browse the repository at this point in the history
…ell for types
  • Loading branch information
jamessantiago committed Oct 11, 2014
1 parent 36499d6 commit 0c4f703
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Functions/TestResults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function Export-NUnitReport {

#Write root test-suite element containing all the describes
$XmlWriter.WriteStartElement("test-suite")
$XmlWriter.WriteAttributeString("type", "Powershell")
$XmlWriter.WriteAttributeString("type", "Namespace")
$XmlWriter.WriteAttributeString("name", $InputObject.Path)
$XmlWriter.WriteAttributeString("executed", "True")

Expand All @@ -98,7 +98,7 @@ function Export-NUnitReport {
#Write test suites
$XmlWriter.WriteStartElement("test-suite")

$XmlWriter.WriteAttributeString("type", "Powershell")
$XmlWriter.WriteAttributeString("type", "TestFixture")
$XmlWriter.WriteAttributeString("name", $DescribeInfo.name)
$XmlWriter.WriteAttributeString("executed", "True")
$XmlWriter.WriteAttributeString("result", $DescribeInfo.resultMessage)
Expand Down Expand Up @@ -210,7 +210,7 @@ function Get-RunTimeEnvironment() {
@{
"nunit-version" = "2.5.8.0"
"os-version" = $osSystemInformation.Version
platform = $osSystemInformation.Name
platform = $osSystemInformation.Caption
cwd = (Get-Location).Path #run path
"machine-name" = $env:ComputerName
user = $env:Username
Expand Down

0 comments on commit 0c4f703

Please sign in to comment.