go-bdd / gobdd

BDD framework
https://go-bdd.github.io/gobdd/
MIT License
115 stars 19 forks source link

Change the context.Context to an interface #83

Open bkielbasa opened 4 years ago

bkielbasa commented 4 years ago

Is your feature request related to a problem? Please describe.

While mocking etc having interfaces can make life easier. Another argument behind this is that there's a general rule that we should accept interfaces (in test code too) and return structs.

The change would help to introduce the support for custom feature contexts https://github.com/go-bdd/gobdd/issues/52