0
我們正在使用通過karma測試運行器執行的茉莉花測試框架。一切正常,在我的地方不錯,但在團隊服務(以前VSO),而我們試圖執行測試用例,成功執行所有測試用例,但即使通過拋出以下錯誤Visual Studio團隊服務(VSO)茉莉花測試用例代碼覆蓋率
PhantomJS 2.1.1 (Windows 8 0.0.0): Executed 139 of 139 SUCCESS (1.389 secs/1.41 secs)
TOTAL: 139 SUCCESS
Finished 'test' after 1.05 min
C:\Program Files\nodejs\npm.cmd install istanbul
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
C:\Program Files\nodejs\node.exe ./node_modules/istanbul/lib/cli.js cover --report cobertura --report html -i .\src\*.ts ./node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=node_modules/jasmine/lib/examples/jasmine.json **/*specs.ts
Started
No specs found
Finished in 0.001 seconds
No coverage information was collected, exit without writing coverage information
Starting 'Publish-CodeCoverage' cmdlet...
Fetched BuildId '656'.
System.ArgumentException: File 'C:\a\1\s\coverage\cobertura-coverage.xml' does not exist or is not accessible.
at Microsoft.TeamFoundation.DistributedTask.Task.CodeCoverage.SummaryReader.ReadSummaryFile(String summaryXmlLocation)
at Microsoft.TeamFoundation.DistributedTask.Task.CodeCoverage.CoberturaSummaryReader.GetCodeCoverageSummary(String summaryXmlLocation)
at Microsoft.TeamFoundation.DistributedTask.Task.CodeCoverage.PublishCodeCoverageCmd.TryGenerateAndPublishCodeCoverageSummary()
at Microsoft.TeamFoundation.DistributedTask.Task.CodeCoverage.PublishCodeCoverageCmd.ProcessRecord()
建立有利的後的代碼覆蓋率爲空定義代碼覆蓋率
是否有代碼覆蓋率的結果,如果你運行一飲而盡命令收集代碼覆蓋率? –
@starain沒有代碼覆蓋率是空的。我錯過了什麼? – ShaMoh
測試代碼覆蓋率的詳細步驟是什麼? –