Answer the question
In order to leave comments, you need to log in
How to specify a custom directory for loading tests in Laravel?
I pack my module in Laravel into a separate namespace It is
very convenient that in the ServiceProvider in the boot() method
You can specify custom directories for views and migrations
(via the $this->loadMigrationsFrom() and $this->loadViewsFrom() methods)
But I can’t understand how can I specify a custom directory for loading tests
Answer the question
In order to leave comments, you need to log in
phpunit.xml
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question