@bernhardh You should be running Dusk from inside your package. Its tests shouldn’t be ran from the consuming application.
Mar 15, 2021
11
Level 1
Dusk tests inside my package folder
Hello,
is there a way, to add additional folders for testing in laravel dusk?
I tried to add it in the Unit test section of phpunit.xml
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
<directory suffix="Test.php">./packages/MyPackage/tests</directory>
</testsuite>
but this doesn't work.
Level 61
Let's say you have a structure like this:
home
+-- code
+-- app1
+-- package1
+-- package2
If you include your packages in the app1 project and you haven't changed anything from any of the packages folder, there is no reason why you should test packages again.
But inside of the app1 folder, you should write integration like tests that prove that all packages work well as whole/together.
So if you have individual tests for every package and integration tests for the whole app you are good to go.
Please or to participate in this conversation.