Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path containing spaces for CoverletOutput leads to error #27

Closed
taconaut opened this issue May 6, 2019 · 1 comment
Closed

Path containing spaces for CoverletOutput leads to error #27

taconaut opened this issue May 6, 2019 · 1 comment
Assignees
Milestone

Comments

@taconaut
Copy link

taconaut commented May 6, 2019

I've encountered an issue when using Cake.Coverlet on my Jenkins instance (which has the workspace at its default location in Program Files (x86) for this project https://github.com/taconaut/Sppd.TeamTuner.

When running the Target Run-Unit-Tests in Jenkins (failed job), following command is being generated:
Executing: "C:/Program Files/dotnet/dotnet.exe" test "C:/Program Files (x86)/Jenkins/jobs/Sppd.TeamTuner-Deploy-Codecov/workspace/Backend/Tests/Sppd.TeamTuner.Tests.Unit/Sppd.TeamTuner.Tests.Unit.csproj" --configuration Release --no-build --no-restore /property:CollectCoverage=True /property:CoverletOutputFormat=\"opencover\" /property:CoverletOutput=C:/Program Files (x86)/Jenkins/jobs/Sppd.TeamTuner-Deploy-Codecov/workspace/coverage-results/coverage-results-unit.opencover.xml /property:Include=\"[Sppd.TeamTuner.*]*\" /property:Exclude=\"[xunit*]*,[Sppd.TeamTuner.Tests.*]*\"

And fails with: MSBUILD : error MSB1008: Only one project can be specified.

If adding (unescaped) quotes around /property:CoverletOutput, it fixes this issue: /property:CoverletOutput="C:/Program Files (x86)/Jenkins/jobs/Sppd.TeamTuner-Deploy-Codecov/workspace/coverage-results/coverage-results-unit.opencover.xml"

@Romanx
Copy link
Owner

Romanx commented Jun 2, 2019

This has now been released to Nuget. Thanks for your patience @taconaut

@Romanx Romanx closed this as completed Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants