coveralls-net / coveralls.net

NuGet program for sending coverage reports to coveralls.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid Coveralls Repo Token

kbilsted opened this issue · comments

Hi I just got started on integrating coverall in my stateprinter project on app appveyor. Unfortunately my log looks like

Committing... 
Visited Classes 81 of 91 (89.01) 
Visited Methods 288 of 313 (92.01) 
Visited Points 1286 of 1412 (91.08) 
Visited Branches 579 of 671 (86.29) 

==== Alternative Results (includes all methods including those without corresponding source) ==== 
Alternative Visited Classes 95 of 102 (93.14) 
Alternative Visited Methods 358 of 397 (90.18) 
C:\projects\stateprinter\packages\coveralls.io.1.1.86\tools\coveralls.net.exe --opencover coverage.xml
Invalid Coveralls Repo Token

I've copied more or less your appveyor.yml file: https://github.com/kbilsted/StatePrinter/blob/feature/codecoverage/appveyor.yml in there i've replaced the security token i got from from https://coveralls.io/r/kbilsted/StatePrinter from the section

If you intend to submit coverage data via a private CI or command line other than Travis Pro, add the following line to your .coveralls.yml :
repo_token: PlKcHlYUjBpsvFEzSnScYzMDseJi9ASNx

I've noticed that this key is significantly shorter than the one you use in your example https://github.com/jdeering/coveralls.net/blob/master/appveyor.yml

I've also noticed that in https://github.com/jdeering/coveralls.net/blob/master/coveralls.net/Program.cs

            if (coveralls.RepoToken.IsBlank())
            {
                Console.WriteLine("Invalid Coveralls Repo Token");
                return;
            }

which is a bit misleading error message.

Any ideas on how to progress?

I've fixed it now by removing the secure prefix. How do I secure a token on appveyor?

Improved the documentation and pushed as PR