Answer the question
In order to leave comments, you need to log in
How to make test errors more informative?
Time: 3.84 seconds, Memory: 10.00MB
There was 1 error:
1) App\Tests\Functional\AuthFunctionalTest::AuthenticationForm_WithValidCredentials_Submit with data set #0 ('/en/login')
LogicException: The request was not redirected.
/var/www/qqqq/vendor/symfony/browser-kit/Client.php:527
/var/www/qqqq/src/Tests/Functional/AuthFunctionalTest.php:53
ERRORS!
Tests: 2, Assertions: 3, Errors: 1.
Answer the question
In order to leave comments, you need to log in
And it's not clear why it gives an error, and so with many tests, sit and guess why it throws it out.No need to guess , you need to debug . In this case, obviously, the authorization has broken. Why it broke the tests themselves will not know. Therefore, you need to add more tests and checks to them, so that in the event of a fall, you can clearly understand where something broke.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question