-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
Description
Description
These kind of custom assertions, that Symfony provides, are way too verbose :
$this->assertResponseRedirects('/' . $this->getBaseRoute());
$this->assertResponseStatusCodeSame($expectedStatusCode);For example, on one test:
/var/www bin/phpunit tests/Controller/Crud/Field/BurialControllerTest.php --filter 'testEdit@USER_ADMIN_READ_ONLY' | wc -l
2276
More than 2K lines! When I broke something that impact all the application, the CI output is unusable.
Note
The output is mainly HTML...
I started to use
$this->assertResponseStatusCodeSame($expectedStatusCode, verbose: false);But it's boring.
So here is my proposal
- Could we "map" the verbose parameter at runtime, depending of PHPUnit debug mode?
- If no, could we default to
falseby default?
Example
No response
pyrechpyrech