rid3638's avatar

How to run test for a specific folter?

Hi, I want to run all the test for a specific folder. Is there any command to run them together? I want to run all the test from Tests/Units/Models folder. I am using phpunit.

0 likes
3 replies
tisuchi's avatar
tisuchi
Best Answer
Level 70

@rid3638 You can simply use vendor/bin/phpunit <your-path>

For your case, it should be:

vendor/bin/phpunit Tests/Units/Models
1 like
enoch91's avatar

Run phpunit tests/Units/Models the actual path to your test folder relative to the project's root directory.

1 like
rid3638's avatar

Thank you all. :) it is working now.

Please or to participate in this conversation.