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

Code Coverage isn't really showing up #2

Open
robrodi opened this issue Sep 10, 2017 · 0 comments
Open

Code Coverage isn't really showing up #2

robrodi opened this issue Sep 10, 2017 · 0 comments

Comments

@robrodi
Copy link
Owner

robrodi commented Sep 10, 2017

Right now coverage on my machine looks like:

> go test . -cover
ok      _/C_/src/jenkins/dockerjenkinsGo        0.027s  coverage: 33.3% of statements

But the image and reports are sad due to coverage.xml not getting the data when i use gocover-cobertura

Coverage.out
mode: count
_/var/jenkins_home/workspace/Test_2/main.go:4.30,6.2 1 1
_/var/jenkins_home/workspace/Test_2/main.go:7.19,7.21 0 0
_/var/jenkins_home/workspace/Test_2/main.go:8.13,11.2 2 0

** Coverage.xml **

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-03.dtd">
<coverage line-rate="0" branch-rate="0" version="" timestamp="1505022258239">
	<sources>
		<source>/var/jenkins_home/workspace/Test 2/src</source>
	</sources>
	<packages></packages>
</coverage>

it's probably related to #1

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

1 participant