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

Use an interface rather than concrete type for testing.T #7

Merged
merged 1 commit into from
Dec 9, 2016

Conversation

joshq00
Copy link
Contributor

@joshq00 joshq00 commented Dec 9, 2016

This is preventing me from using a spec runner as *testing.T isn't provided, but an implementation of it is

Copy link
Owner

@fortytw2 fortytw2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Just one little change and I'll merge it

@@ -17,8 +16,12 @@ func init() {
flag.Parse()
}

type TestingT interface {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call this TestReporter instead, I think 😄

@joshq00
Copy link
Contributor Author

joshq00 commented Dec 9, 2016

I was following the method used by testify but I'll change it if you like

@fortytw2
Copy link
Owner

fortytw2 commented Dec 9, 2016

Ah cool, prior art. Fair enough!

Thanks for your help 😄

@fortytw2 fortytw2 merged commit 24bd73b into fortytw2:master Dec 9, 2016
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