Skip to content

Add tests. - #3

Open
t-yuki wants to merge 3 commits into
AlekSi:masterfrom
t-yuki:master
Open

Add tests.#3
t-yuki wants to merge 3 commits into
AlekSi:masterfrom
t-yuki:master

Conversation

@t-yuki

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

Copy link
Copy Markdown
Contributor

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