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

Add tests. #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add tests. #3

wants to merge 3 commits into from

Conversation

t-yuki
Copy link
Contributor

@t-yuki t-yuki commented Sep 3, 2013

Hi, I added some tests and refactored main to execute tests.

Due to resolve package path and directory path dynamically, test code of TestConvertFunc1 is tricky a bit.

testdata/func1_test.json is generated based on the result of gocov test testdata (not documented).

However, gocov test (whole package gocov-xml) will fail with a message gocov-xml.go:16: gocov redeclared as imported package name
I think it caused by a bug of gocov: "Gocov fails if the target imports gocov itself" ... not reported yet.
A dirty workaround for it is simply delete the line from gocov-xml.go.
e.g. sed -i -e '/"github.com\/axw\/gocov"/ d' gocov-xml.go

@AlekSi AlekSi self-assigned this Mar 20, 2017
@AlekSi AlekSi removed their assignment Apr 29, 2018
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

Successfully merging this pull request may close these issues.

2 participants