我正在尝试创建一些Laravel Dusk测试,但是每当我运行多个测试时,该过程都会终止,并且不会出现错误消息。我可以单独运行测试。
命令:php artisan dusk --debug --verbose
运行一项测试的输出:
PHPUnit 7.5.11 by Sebastian Bergmann and contributors.
Runtime: PHP 7.1.8 with Xdebug 2.5.0
Configuration: /Users/jrquick/development/next/api/phpunit.dusk.xml
Test 'Tests\Api\AuthTests::testUnauthenticated' started
Test 'Tests\Api\AuthTests::testUnauthenticated' ended
Time: 742 ms, Memory: 22.00 MB
OK (1 test, 1 assertion)
运行多个测试的输出:
PHPUnit 7.5.11 by Sebastian Bergmann and contributors.
Runtime: PHP 7.1.8 with Xdebug 2.5.0
Configuration: /Users/jrquick/development/next/api/phpunit.dusk.xml
Test 'Tests\Api\AuthTests::testUnauthenticated' started
Test 'Tests\Api\AuthTests::testUnauthenticated' ended
Test 'Tests\Browser\LoginTests::testLoginWithWrongPassword' started
测试将终止,没有任何错误。
phpunit.dusk.xml:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<php>
<ini name="display_errors" value="On" />
<ini name="display_startup_errors" value="On" />
</php>
<testsuites>
<testsuite name="API Test Suite">
<directory suffix="Tests.php">./tests/Api</directory>
</testsuite>
<testsuite name="Browser Test Suite">
<directory suffix="Tests.php">./tests/Browser</directory>
</testsuite>
<testsuite name="Unit Test Suite">
<directory suffix="Tests.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
</phpunit>
我已经重新安装了Dusk,甚至将测试简化为简单的资产,而无需执行任何操作,但仍然无法运行多个测试。