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

guide for testing #170

Closed
phoet opened this issue Aug 6, 2013 · 4 comments
Closed

guide for testing #170

phoet opened this issue Aug 6, 2013 · 4 comments

Comments

@phoet
Copy link
Contributor

phoet commented Aug 6, 2013

i was looking around the feedzirra repo for how to test this stuff within my app, but i did not find a real guide for this. my first approach was to use webmock, but as i read, curb is not fully supported, so this seems to not be an option.

i would love to see a section in the readme that points out how to mock/stub/fake whatever in feedzirra in order to have some kind of unit-test, that does not call out to the interwebs.

@JakobR
Copy link

JakobR commented Aug 7, 2013

I had the same problem (tried to use webmock as well).

I'm using a local HTTP server that serves all the feeds I want to run tests on. It might not be a very good solution, but so far it has worked well enough for me.

@filiptepper
Copy link
Contributor

Back when I started using Feedzirra I've testing it with file:// protocol. See my old blog post for a sample solution (http://filiptepper.github.io/2009/11/16/testing-feedzirra/), perhaps this still works.

@phoet
Copy link
Contributor Author

phoet commented Nov 7, 2013

@filiptepper ah, nice trick!

filiptepper added a commit to filiptepper/feedzirra that referenced this issue Nov 14, 2013
@filiptepper
Copy link
Contributor

@jonallured Feel free to close this issue unless there's something else we should mention in the README?

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

No branches or pull requests

4 participants