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

Add better debuggability to be_X test failures #134

Merged
merged 2 commits into from
Jan 12, 2020

Conversation

valscion
Copy link
Member

This way test failures will show what the HTTP status code actually was when test fails as well as output the entire response body. The response body will most likely contain vital debugging information to help figure out why the test failed.

This was cherry-picked from a commit I did to #131 as this will be useful to all the future changes done to this gem.

This way test failures will show what the HTTP status code actually was
when test fails as well as output the entire response body. The response
body will most likely contain vital debugging information to help figure
out why the test failed
@valscion valscion merged commit 3251c65 into master Jan 12, 2020
@valscion valscion deleted the improve-test-failure-debug-experience branch January 12, 2020 10:07
lgebhardt pushed a commit to lgebhardt/jsonapi-authorization that referenced this pull request Feb 8, 2020
* Add better debuggability to be_X test failures

This way test failures will show what the HTTP status code actually was
when test fails as well as output the entire response body. The response
body will most likely contain vital debugging information to help figure
out why the test failed

* Output last request information on spec failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant