File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,9 @@ function TestAndGenerateReport($dir)
309309 $Env: AZURE_PASSWORD = " mock-test"
310310
311311 # do test with corage report and convert to cobertura format
312- Write-Host " go cmd: go test -v -coverprofile coverage.txt | Tee-Object -FilePath output .txt"
312+ Write-Host " go cmd: go test -v -coverprofile coverage.txt | Tee-Object -FilePath outfile .txt"
313313 go test - v - coverprofile coverage.txt | Tee-Object - FilePath outfile.txt
314- Write-Host " report.xml: Get-Content output .txt | go-junit-report > report.xml"
314+ Write-Host " report.xml: Get-Content outfile .txt | go-junit-report > report.xml"
315315 Get-Content outfile.txt | go- junit- report > report.xml
316316 Write-Host " coverage.json: gocov convert ./coverage.txt > ./coverage.json"
317317 gocov convert ./ coverage.txt > ./ coverage.json
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ $sdk = Get-GoModuleProperties $packageFolder
3434ExecuteSingleTest $sdk $runLocalMockServer
3535
3636TestAndGenerateReport $packageFolder
37- $testoutputFile = Join-Path $packageFolder output .txt
37+ $testoutputFile = Join-Path $packageFolder outfile .txt
3838$all = (Select-String - Path $testoutputFile - Pattern " === RUN" ).Matches.length
3939$pass = (Select-String - Path $testoutputFile - Pattern " --- PASS" ).Matches.length
4040$fail = (Select-String - Path $testoutputFile - Pattern " --- FAIL" ).Matches.length
You can’t perform that action at this time.
0 commit comments