Skip to content

Conversation

onsi
Copy link

@onsi onsi commented Jan 14, 2014

this is related to:
#27

Receiving testing.T via an interface would allow Ginkgo to provide an implementation of the interface that works with Ginkgo's test runner.

I defined an interface in a new package called interfaces... if you don't like that there are other options (e.g. have an interface for this defined in each package)? I'd be happy to iterate on this.

If this gets pulled in I'll add an adapter to Ginkgo (and some examples) to make using testify's assertion and mock libraries trivial.

@tjarratt
Copy link

👍 I'm currently using the assert package in this repo and being able to pass in testing.T via an interface would be extremely useful.

@onsi
Copy link
Author

onsi commented Jan 21, 2014

Durp... I'm an idiot. This should be better: no need to import any other packages.

matryer pushed a commit that referenced this pull request Jan 28, 2014
receive *testing.T via an interface
@matryer matryer merged commit a3ce369 into stretchr:master Jan 28, 2014
@matryer
Copy link
Member

matryer commented Jan 28, 2014

... what if we just call that interface T?

@onsi
Copy link
Author

onsi commented Jan 28, 2014

doesn't much matter to me :) T makes sense.

@onsi
Copy link
Author

onsi commented Jan 30, 2014

FWIW, the Ginkgo side of things is now done and there's documentation on how to get testify working with Ginkgo:

http://onsi.github.io/ginkgo/#using_other_matcher_libraries

(or it will be there as soon as github-pages finishes regenerating the page)

@matryer
Copy link
Member

matryer commented Jan 31, 2014

@onsi - great

Copy link

@Fernandosilvas35 Fernandosilvas35 left a comment

Choose a reason for hiding this comment

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

    • **__**

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.

4 participants