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

Running multiple test suites reports failure and logs multiple times #82

Closed
Adirelle opened this issue Aug 4, 2016 · 3 comments
Closed

Comments

@Adirelle
Copy link

Adirelle commented Aug 4, 2016

I have setup a test suite for each file of my package. I also redirect logs (from go-logging) into testing.T. The failures and logs are duplicated in the output of each suite. This is quite confusing.

@Adirelle
Copy link
Author

Adirelle commented Aug 4, 2016

Erm, actually I was confused by the documentation : I have wrote a TestFunc for each suite, without understanding that calling TestingT() would run all suites. Calling TestingT() only one time solve the issue. Also redirecting logs to check.C instead of testing.T seems to attribute the logs to the right tests.

@Adirelle Adirelle closed this as completed Aug 4, 2016
@dmolesUC
Copy link

dmolesUC commented Jan 4, 2019

Where's the right place to make the call to TestingT() if you have multiple suites?

@dmolesUC
Copy link

dmolesUC commented Jan 4, 2019

Never mind, I just saw the discussion in #12.

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

2 participants