-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation][DX] Don't add the whole response to test failure description #40837
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
Comments
I usually disable error page with:
Is it better ? |
yeah, that helped, thanks |
The |
I am afraid we cannot do that as that would be a BC break. |
With Symfony 6 it could be possible then |
Thank you for this issue. |
If someone want to make it the default,
So I think we can close the issue. |
GIven that we're about to release 7.0 and this annoying default is still there - shouldn't we quickly fix this before 7.0RC? It's still highly annoying that test output is pretty unusable if |
Uh oh!
There was an error while loading. Please reload this page.
Description
Currently WebTestCase built in constraints are adding the whole httpresponse to the failure description. That is causing a wall of texts when a unit test breaks, resulting the cause of the error so far that I can't even scoll back to it.
like here:
https://github.com/symfony/symfony/blob/5.x/src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseIsSuccessful.php#L54
Example
Note the reducted 3000 lines between
<html>
and</html>
And without the linked additionalFailureDescription function:
The text was updated successfully, but these errors were encountered: