Missing error when test data provider fails
mathroc opened this issue · 2 comments
mathroc commented
when there is an issue in a dataprovider, the only output visible is this:
PHPUnit 9.5.11 by Sebastian Bergmann and contributors.
Runtime: PHP 8.0.14
Configuration: phpunit.xml
No tests executed!
running it manually shows this:
PHPUnit 9.5.11 by Sebastian Bergmann and contributors.
Runtime: PHP 8.0.14
Configuration: /var/www/phpunit.xml
E 1 / 1 (100%)
Time: 00:00.395, Memory: 44.50 MB
There was 1 error:
1) Error
The data provider specified for Tests\Apps\Core\Functional\Invites\ReferralControllerTest::testSendInvitations is invalid.
Error: Call to undefined function Tests\Apps\Core\Functional\Invites\asd()
/var/www/apps/Core/tests/Functional/ReferralProgram/ReferralControllerTest.php:66
/var/www/app/Commands/Core/wrappers.php:16
/var/www/app/Commands/Core/wrappers.php:16
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
recca0120 commented
could you run vendor/bin/phpunit --teamcity
and paste output to here?
recca0120 commented
try version 3.0