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

Adds more logging blocks for debugging and extended features #161

Merged
merged 5 commits into from
Mar 19, 2016

Conversation

jzucker2
Copy link
Contributor

This isn't a large change, but I was hoping for a little more insight into when certain actions occur inside OHHTTPStubs so I added some more blocks in addition to onStubActivationBlock. Now there is also a onStubRedirectBlock and a afterStubFinishBlock for better clarity. As well, I pass in the response used by the stub. In my case I use single stub that generates multiple different responses, similar to your example Different responses for each call and so it was easier to track the response returned than the descriptor that generates that response.

I'm totally open to a discussion on this, but it'd be really helpful for me if something like this was added, hence why I put together this PR.

@jzucker2
Copy link
Contributor Author

Also, was CI disabled for this project?

@AliSoftware
Copy link
Owner

Thanks a lot for this PR! Looks quite good! 👍

I don't know why Travis didn't pick up that PR, it usually does (it did for the last PR 160, so why not this one?), so that's strange indeed.

Could you also add an entry in the CHANGELOG.md to list your changes there and credit yourself? Thanks!

@jzucker2
Copy link
Contributor Author

CI ran this time!

@jzucker2
Copy link
Contributor Author

Thank you! That's an easy fix

AliSoftware added a commit that referenced this pull request Mar 19, 2016
Adds more logging blocks for debugging and extended features
@AliSoftware AliSoftware merged commit a8b64f1 into AliSoftware:master Mar 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants