Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Interfaces for clients, to make it easier to fake in unit tests? #123

Open
half-ogre opened this issue Oct 26, 2015 · 1 comment
Open

Interfaces for clients, to make it easier to fake in unit tests? #123

half-ogre opened this issue Oct 26, 2015 · 1 comment

Comments

@half-ogre
Copy link
Contributor

@pengwynn, I'm curious what your thoughts are on using interfaces for the clients, to make it easier to fake them in unit tests? Currently I have an interface in my service code that proxies to the clients, so I can fake that in my tests. And I can live with that, but I wonder: if the clients themselves had interfaces, would that make life easier for others?

@pengwynn
Copy link
Collaborator

@half-ogre it's an interesting idea. I'd want to play with it on a couple of API domains.

My long-term dream to make testing easier is a Golang version of VCR which makes Octokit.rb testing replayable and refreshable from the actual server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants