code coverage tab not showing TFS 2015 build
up vote
0
down vote
favorite
I am building some code using tfs 2015, running some karma tests and producing a Cobetura summary file with the karma-coverage reporter with karma.config as:
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' }
]
}
I then publish the coverage results in the build definition as:
but in the build summary there is no code coverage tab to display the results:
the artifact is created with the data in though, so can be downloaded and viewed correctly.
I have seen many posts showing the code coverage tab, but I cant seem to get it to show. Please help.
output from build:
2018-11-21T12:02:06.8135130Z Executing the powershell script: C:agenttasksPublishCodeCoverageResults1.0.3PublishCodeCoverageResults.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_work55stestResultsstubscobeturacobertura.xml
2018-11-21T12:02:07.0322620Z ##[debug]reportDirectory = C:agent_work55stestResultsstubsCoverageReporter
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_work55stestResultsstubsCoverageReporter' to container folder 'Code Coverage Report_13389' of build 13389.
2018-11-21T12:02:11.7824652Z Associated artifact 27182 with build 13389
tfs build code-coverage tfs2015
add a comment |
up vote
0
down vote
favorite
I am building some code using tfs 2015, running some karma tests and producing a Cobetura summary file with the karma-coverage reporter with karma.config as:
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' }
]
}
I then publish the coverage results in the build definition as:
but in the build summary there is no code coverage tab to display the results:
the artifact is created with the data in though, so can be downloaded and viewed correctly.
I have seen many posts showing the code coverage tab, but I cant seem to get it to show. Please help.
output from build:
2018-11-21T12:02:06.8135130Z Executing the powershell script: C:agenttasksPublishCodeCoverageResults1.0.3PublishCodeCoverageResults.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_work55stestResultsstubscobeturacobertura.xml
2018-11-21T12:02:07.0322620Z ##[debug]reportDirectory = C:agent_work55stestResultsstubsCoverageReporter
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_work55stestResultsstubsCoverageReporter' to container folder 'Code Coverage Report_13389' of build 13389.
2018-11-21T12:02:11.7824652Z Associated artifact 27182 with build 13389
tfs build code-coverage tfs2015
What do the logs say for the steps where you're running your tests and uploading your results?
– Daniel Mann
Nov 21 at 13:52
@DanielMann I have added this to the question now.
– MikeW
Nov 22 at 11:56
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am building some code using tfs 2015, running some karma tests and producing a Cobetura summary file with the karma-coverage reporter with karma.config as:
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' }
]
}
I then publish the coverage results in the build definition as:
but in the build summary there is no code coverage tab to display the results:
the artifact is created with the data in though, so can be downloaded and viewed correctly.
I have seen many posts showing the code coverage tab, but I cant seem to get it to show. Please help.
output from build:
2018-11-21T12:02:06.8135130Z Executing the powershell script: C:agenttasksPublishCodeCoverageResults1.0.3PublishCodeCoverageResults.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_work55stestResultsstubscobeturacobertura.xml
2018-11-21T12:02:07.0322620Z ##[debug]reportDirectory = C:agent_work55stestResultsstubsCoverageReporter
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_work55stestResultsstubsCoverageReporter' to container folder 'Code Coverage Report_13389' of build 13389.
2018-11-21T12:02:11.7824652Z Associated artifact 27182 with build 13389
tfs build code-coverage tfs2015
I am building some code using tfs 2015, running some karma tests and producing a Cobetura summary file with the karma-coverage reporter with karma.config as:
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' }
]
}
I then publish the coverage results in the build definition as:
but in the build summary there is no code coverage tab to display the results:
the artifact is created with the data in though, so can be downloaded and viewed correctly.
I have seen many posts showing the code coverage tab, but I cant seem to get it to show. Please help.
output from build:
2018-11-21T12:02:06.8135130Z Executing the powershell script: C:agenttasksPublishCodeCoverageResults1.0.3PublishCodeCoverageResults.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_work55stestResultsstubscobeturacobertura.xml
2018-11-21T12:02:07.0322620Z ##[debug]reportDirectory = C:agent_work55stestResultsstubsCoverageReporter
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_work55stestResultsstubsCoverageReporter' to container folder 'Code Coverage Report_13389' of build 13389.
2018-11-21T12:02:11.7824652Z Associated artifact 27182 with build 13389
tfs build code-coverage tfs2015
tfs build code-coverage tfs2015
edited Nov 22 at 11:55
asked Nov 21 at 12:56
MikeW
783828
783828
What do the logs say for the steps where you're running your tests and uploading your results?
– Daniel Mann
Nov 21 at 13:52
@DanielMann I have added this to the question now.
– MikeW
Nov 22 at 11:56
add a comment |
What do the logs say for the steps where you're running your tests and uploading your results?
– Daniel Mann
Nov 21 at 13:52
@DanielMann I have added this to the question now.
– MikeW
Nov 22 at 11:56
What do the logs say for the steps where you're running your tests and uploading your results?
– Daniel Mann
Nov 21 at 13:52
What do the logs say for the steps where you're running your tests and uploading your results?
– Daniel Mann
Nov 21 at 13:52
@DanielMann I have added this to the question now.
– MikeW
Nov 22 at 11:56
@DanielMann I have added this to the question now.
– MikeW
Nov 22 at 11:56
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412534%2fcode-coverage-tab-not-showing-tfs-2015-build%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do the logs say for the steps where you're running your tests and uploading your results?
– Daniel Mann
Nov 21 at 13:52
@DanielMann I have added this to the question now.
– MikeW
Nov 22 at 11:56