Skip to content

Conversation

@bt
Copy link

@bt bt commented Apr 23, 2017

I'm using Ginkgo as a testing framework and I noticed that it doesn't directly plug into Ginkgo because Ginkgo will not directly expose the *testing.T in it's tests.

By using an interface, TestReporter (similar to how gomock works), we can then leverage GinkgoT() with the test.RunReporter function, like such:

test.RunRequest(GinkgoT(), api.MakeHandler(), test.MakeSimpleRequest("GET", "/version", nil))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants