diff --git a/Invoke-SuiteReport.ps1 b/Invoke-SuiteReport.ps1 index 952c98c..a42e81f 100644 --- a/Invoke-SuiteReport.ps1 +++ b/Invoke-SuiteReport.ps1 @@ -54,7 +54,7 @@ foreach ($UnitTest in $NUnitHtml) { #Find the exact url formatted path of the current CSS/JS file $urlTypePath = $regex.matches($content) | foreach {$_.groups['url'].value} - $content = $regex.Replace($content,$path) + $content = $regex.Replace($content,"'$path'") $content = ($content -replace 'ReportUnit TestRunner Report',"$ApplicationSuiteTitle") ` -replace 'Executive Summary',"Infrastrcture Test Suite for $ApplicationSuiteTitle" ` @@ -63,6 +63,6 @@ foreach ($UnitTest in $NUnitHtml) { # Change url format to file format relative to script location } # end foreach URL replace - Out-File -InputObject $content -FilePath "$OutputFolder\$OutputHTML" -Force + Out-File -InputObject $content -FilePath "$OutputFolder\$OutputHTML" -Force -Encoding 'utf8' } # end Foreach unittests \ No newline at end of file