You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when using gocov it seems it does not "respect" the tags parameter.
Example, using go test -tags=integration only runs tests with +build integration constraint, but when using gocov test -tags=integration it runs all tests. Is this by design? Or which order must it be used?
Thank you
The text was updated successfully, but these errors were encountered:
@ardias I'm sorry for not responding sooner, notifications were somehow disabled for me and I simply was not aware of this issue.
Tags are additive, so unless you have a build constraint like !integration, then go test -tags=integration will also run all the tests. You can confirm this by passing -v in to print the test names.
There is no bug here. If gocov did not pass the tags, then the integration tests would be not run at all. Nothing special is done with tags, they're just passed along.
Hi,
when using gocov it seems it does not "respect" the tags parameter.
Example, using go test -tags=integration only runs tests with +build integration constraint, but when using gocov test -tags=integration it runs all tests. Is this by design? Or which order must it be used?
Thank you
The text was updated successfully, but these errors were encountered: