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
Test Coverage Error #1477
Comments
At a closer look, GetCustom looked like it worked, but it actually does nothing. We don't get a response to decode, because there was nothing that decoded the response. When adding .Send() method at the end of it, it panics again. Here is the stack trace,
|
This also doesn't work for any of the other HTTP methods. |
@icywaffle did you find a solution? If not, can you reproduce the issue with a new revel app ( |
The first issue that I ran into, trying to copy the Booking example in order to use
go test
for full coverage. When I was trying to use the Get method for the testing suite, it would instantly give me aAfter a few hours of debugging, I finally realized that this was actually the correct response for the test, because it was actually the Get method was appending the wrong URI, causing a panic into a test failure.
What I had to do was actually use GetCustom, and used this instead.
However, the Get method works normally using the normal test format from the main page tutorial, but I think it's better to use this way to get test coverage.
I was wondering why this was an issue, and if anyone ran into this issue too, I hope it helps.
The text was updated successfully, but these errors were encountered: