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

Reenable coverall report upload #8

Open
skovsende opened this issue Nov 27, 2018 · 1 comment
Open

Reenable coverall report upload #8

skovsende opened this issue Nov 27, 2018 · 1 comment

Comments

@skovsende
Copy link
Member

skovsende commented Nov 27, 2018

I'm getting this when trying to upload the report from appveyor(https://ci.appveyor.com/project/cakecontrib/cake-proget/builds/20584369):

Executing task: Upload-Coveralls-Report
Executing: "C:/projects/cake-proget/tools/Cake/Cake.exe" "C:/projects/cake-proget/5ffb18a1-781c-46a7-881b-2ca2b6c9cb42.cake"
Deleting file C:/projects/cake-proget/5ffb18a1-781c-46a7-881b-2ca2b6c9cb42.cake
Executing: "C:/projects/cake-proget/tools/coveralls.io.1.4.2/tools/coveralls.net.exe" --opencover "C:/projects/cake-proget/BuildArtifacts/TestCoverage/OpenCover.xml" --repo-token "[REDACTED]"
An unknown exception has occurred.
Could not find a part of the path 'C:\projects\httpmock\src\HttpMock\HeaderMatch.cs'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at Coveralls.Net.LocalFileSystem.ComputeHash(String path) in C:\Users\jason\src\open-source\coveralls.net\coveralls.net\LocalFileSystem.cs:line 28
at Coveralls.CoverallsBootstrap.get_CoverageFiles() in C:\Users\jason\src\open-source\coveralls.net\Coveralls.Lib\CoverallsBootstrap.cs:line 124
at Coveralls.Net.Program.Run(CommandLineOptions options) in C:\Users\jason\src\open-source\coveralls.net\coveralls.net\Program.cs:line 40
at Coveralls.Net.Program.Main(String[] args) in C:\Users\jason\src\open-source\coveralls.net\coveralls.net\Program.cs:line 18
Upload-Coveralls-Report Task failed, but continuing with next Task...

@gep13 - do you have any ideas what is wrong?

@gep13
Copy link
Member

gep13 commented Nov 27, 2018

@skovsende that looks like an issue with the Coverage Report trying to do too much. That .cs file, I am guessing, is not part of the source code for this repository, but rather one of the source files for one of it's dependencies. You should exclude projects/files that you don't want to test, something similar to the following:

https://github.com/cake-contrib/Cake.Tfs/blob/develop/setup.cake#L20

Where xunit is being excluded.

@skovsende skovsende added this to the 0.7.0 milestone Dec 14, 2018
@gep13 gep13 removed this from the 0.7.0 milestone Jul 28, 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