diff --git a/build.ps1 b/build.ps1 index 254e8484a..622dfbe47 100644 --- a/build.ps1 +++ b/build.ps1 @@ -202,6 +202,7 @@ if ($Clean) { , ("$PSScriptRoot/src/schemas/JUnit4/*.xsd", "$PSScriptRoot/bin/schemas/JUnit4/") , ("$PSScriptRoot/src/schemas/NUnit25/*.xsd", "$PSScriptRoot/bin/schemas/NUnit25/") , ("$PSScriptRoot/src/schemas/NUnit3/*.xsd", "$PSScriptRoot/bin/schemas/NUnit3/") + , ("$PSScriptRoot/src/schemas/Cobertura/*.dtd", "$PSScriptRoot/bin/schemas/Cobertura/") , ("$PSScriptRoot/src/schemas/JaCoCo/*.dtd", "$PSScriptRoot/bin/schemas/JaCoCo/") , ("$PSScriptRoot/src/csharp/Pester/bin/$Configuration/net462/Pester.dll", "$PSScriptRoot/bin/bin/net462/") , ("$PSScriptRoot/src/csharp/Pester/bin/$Configuration/net6.0/Pester.dll", "$PSScriptRoot/bin/bin/net6.0/") diff --git a/publish/filesToPublish.ps1 b/publish/filesToPublish.ps1 index 6ae35efc8..ec216ff18 100644 --- a/publish/filesToPublish.ps1 +++ b/publish/filesToPublish.ps1 @@ -8,6 +8,7 @@ 'bin/net6.0/Pester.dll' 'en-US/about_Pester.help.txt' 'en-US/about_PesterConfiguration.help.txt' + 'schemas/Cobertura/coverage-loose.dtd' 'schemas/JaCoCo/report.dtd' 'schemas/JUnit4/junit_schema_4.xsd' 'schemas/NUnit25/nunit_schema_2.5.xsd' diff --git a/src/functions/Coverage.ps1 b/src/functions/Coverage.ps1 index 2a7d078b6..f6b630428 100644 --- a/src/functions/Coverage.ps1 +++ b/src/functions/Coverage.ps1 @@ -1186,7 +1186,7 @@ function Get-CoberturaReportXml { } $xmlDeclaration = '' - $docType = '' + $docType = '' $coverageXml = ConvertTo-XmlElement -Node $coverage $document = "$xmlDeclaration`n$docType`n$(([System.Xml.XmlElement]$coverageXml).OuterXml)" diff --git a/src/schemas/Cobertura/coverage-loose.dtd b/src/schemas/Cobertura/coverage-loose.dtd new file mode 100644 index 000000000..35c8272d2 --- /dev/null +++ b/src/schemas/Cobertura/coverage-loose.dtd @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +