0
laravel에서 cmd를 실행하면 [옵션]이 작동하지 않습니다. 한 파일에서 2 테스트 만 실행하고 항상 "phpunit --something"이라고 쓰면 테스트가 실행됩니다. Windows 7 cmd를 사용하고 있습니다.phpunit 옵션이 laravel에서 작동하지 않습니다.
laravel에서 cmd를 실행하면 [옵션]이 작동하지 않습니다. 한 파일에서 2 테스트 만 실행하고 항상 "phpunit --something"이라고 쓰면 테스트가 실행됩니다. Windows 7 cmd를 사용하고 있습니다.phpunit 옵션이 laravel에서 작동하지 않습니다.
Laravel에서 루트 폴더에있는 phpunit.xml
을 편집해야합니다. 특정 기능이 나를 위해
$ vendor/bin/phpunit --filter testFunction "tests/myfolder/MyTest.php"
// Format: vendor/bin/phpunit --filter {TestMethodName} {FilePath}
Doesnty 작업 같은 것을 사용하십시오
지금을 실행이
이 또는 유사한 같은이 파일에있는 TestSuite를 추가합니다. phpunit --filter를 작성하면 "phpunit"명령처럼 테스트를 시작합니다. – Cezaro