Replies: 3 comments
-
Did you get anywhere with this? I prefer putting my tests alongside app code a la React. I know this works without Pest but struggling to get it working with Pest. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have a project where my tests folder is not at the root of the project but in some sub directories. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also hope to achieve this function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
So, I'm developing a plugin for an Laravel app, and would like to add a Pest testsuite to it, but inside the plugin folder to have everything in one place, but am finding a hard way making it work. This is the layout:
I installed pest on the main app, and pointed the bootstrap setting on
platform\plugins\myplugin\phpunit.xml
to the main appautoload.php
:This works when running
but it loads
tests/Pest.php
instead ofplatform/plugins/myplugin/tests/Pest.php
. I also tried:with this it loads both
tests/Pest.php
andplatform/plugins/myplugin/tests/Pest.php
, but that's not the goal.Also, if it helps, it seems that with this setup the trait
RefreshDatabase
isn't working (using it on bothPest.php
files, and also on a test class file.Is this doable or is it a too weird setup that's better to drop it and just use the standard tests folder?
Beta Was this translation helpful? Give feedback.
All reactions