因为我的测试需要很长时间才能运行? phpunit和laravel

时间:2020-08-13 15:18:00

标签: laravel docker-compose phpunit

我将系统加载到Docker容器中 我已经在功能文件夹中创建了一个测试,该测试很简单:

public function testExample(){
  $this->assertTrue(false);
}

,但是最多可能需要2、3分钟,如果我执行更大的测试,则每次测试需要6至7分钟。我没有配置错误吗?在我的码头工人? 这次需要3.8分钟

enter image description here

通过这种方式,我可以运行测试

docker-compose exec myProject vendor/bin/phpunit tests/Feature/Http/Controllers/testing/TestController

0 个答案:

没有答案