代码覆盖率选项卡未显示TFS 2015构建

时间:2018-11-21 12:56:31

标签: tfs build code-coverage tfs2015

我正在使用tfs 2015构建一些代码,运行一些业力测试,并使用karma.config使用业力覆盖报告程序生成Cobetura摘要文件:

coverageReporter: {
        dir: 'testResults/stubs',
        includeAllSources: true,
        reporters: [
            { type: 'html', subdir: 'CoverageReporter' },
            { type: 'cobertura', subdir: 'cobetura', file: 'cobertura.xml' },
            { type: 'text', subdir: '.', file: 'testResults.txt' },
            { type: 'text-summary', subdir: '.', file: 'testSummary.txt' }
        ]
    }

然后,我在构建定义中将覆盖结果发布为:

Publish Step

但是在构建摘要中,没有代码覆盖率选项卡来显示结果:

Build Summary

工件是使用数据创建的,因此可以正确下载和查看。

Coverage Artifact

我已经看到很多帖子显示了“代码覆盖率”选项卡,但是我似乎无法显示它。请帮忙。

构建的输出:

2018-11-21T12:02:06.8135130Z Executing the powershell script: C:\agent\tasks\PublishCodeCoverageResults\1.0.3\PublishCodeCoverageResults.ps1
2018-11-21T12:02:07.0166408Z ##[debug]Entering PublishCodeCoverage.ps1
2018-11-21T12:02:07.0322620Z ##[debug]codeCoverageTool = Cobertura
2018-11-21T12:02:07.0322620Z ##[debug]summaryFileLocation = C:\agent\_work\55\s\testResults\stubs\cobetura\cobertura.xml
2018-11-21T12:02:07.0322620Z ##[debug]reportDirectory = C:\agent\_work\55\s\testResults\stubs\CoverageReporter
2018-11-21T12:02:07.0322620Z ##[debug]additionalCodeCoverageFiles = 
2018-11-21T12:02:07.0478883Z Starting 'Publish-CodeCoverage' cmdlet...
2018-11-21T12:02:07.1416621Z Publishing coverage summary data to TFS server.
2018-11-21T12:02:07.2822777Z Publishing additional files to TFS server.
2018-11-21T12:02:07.4854044Z Max Concurrent Uploads 1, Max Creators 1
2018-11-21T12:02:07.5322833Z Found 38 files to upload.
2018-11-21T12:02:07.5322833Z Files found locally 38,
2018-11-21T12:02:07.5322833Z Files evaluated 0,
2018-11-21T12:02:07.5322833Z Files left to evaluate 38.,
2018-11-21T12:02:07.5322833Z Files created without upload 0,
2018-11-21T12:02:07.5479049Z Files uploaded 0
2018-11-21T12:02:07.5479049Z Files left to process 38
2018-11-21T12:02:07.5479049Z ---------------------------
2018-11-21T12:02:09.5949006Z Files found locally 38,
2018-11-21T12:02:09.5949006Z Files evaluated 38,
2018-11-21T12:02:09.5949006Z Files left to evaluate 0.,
2018-11-21T12:02:09.5949006Z Files created without upload 0,
2018-11-21T12:02:09.5949006Z Files uploaded 35
2018-11-21T12:02:09.5949006Z Files left to process 3
2018-11-21T12:02:09.5949006Z ---------------------------
2018-11-21T12:02:11.6109203Z Created 0 files without uploading content. Total files processed 38
2018-11-21T12:02:11.6418363Z Uploaded artifact 'C:\agent\_work\55\s\testResults\stubs\CoverageReporter' to container folder 'Code Coverage Report_13389' of build 13389.
2018-11-21T12:02:11.7824652Z Associated artifact 27182 with build 13389

0 个答案:

没有答案