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

When ensuring if a test compiles, TestMain() and any init() functions are executed #1515

Closed
poy opened this issue Oct 16, 2017 · 2 comments · Fixed by #1519
Closed

When ensuring if a test compiles, TestMain() and any init() functions are executed #1515

poy opened this issue Oct 16, 2017 · 2 comments · Fixed by #1519

Comments

@poy
Copy link

poy commented Oct 16, 2017

When using go#test#Test to test if a test file compiles, it runs the test setup. This looks deliberate from the given commit

If the tests are intended to run with some form of configuration, then the developer can not use the function with their tests.

cc @enocom

@bhcleek
Copy link
Collaborator

bhcleek commented Oct 16, 2017

@apoydence Do you have a minimal reproducible case?

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 a pull request may close this issue.

2 participants