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

Jenkins Support #42

Open
conwilly88 opened this issue Aug 8, 2019 · 1 comment
Open

Jenkins Support #42

conwilly88 opened this issue Aug 8, 2019 · 1 comment

Comments

@conwilly88
Copy link

Just wondering if this supports Jenkins? If so is there any documentation around it?

Thanks

@jdeering
Copy link
Member

jdeering commented Aug 9, 2019

Yes, Jenkins is supported and will be automatically detected when running in a Jenkins environment, setting build and git information appropriately.

We are currently lacking in the documentation for how to configuration Jenkins. I personally haven't used Jenkins, so I couldn't tell you off the top of my head. If you're familiar enough with Jenkins, the process should just be to add an "after build" script to run the coverage reports and send them to coveralls.io. Below are two Windows command-line options, depending on which testing framework you have set up.

# NUnit + OpenCover
> packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -filter:"+[*]*" -target:"packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" -targetargs:"/noshadow /domain:single YOURPROJECT.Tests\bin\debug\YOURPROJECT.Tests.dll" -output:coverage.xml

# MSTest + OpenCover
> packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -filter:"+[*]*" -target:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" -targetargs:"/testcontainer:YOURPROJECT.Tests/bin/debug/YOURPROJECT.Tests.dll" -output:coverage.xml

> packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml -r %COVERALLS_REPO_TOKEN%

You would also need to do the first couple of steps in the setup guide for adding the package and getting your token(s) from coveralls.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants