-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot use Datasets in subfolders #1121
Comments
Same issue here (it's my post) |
hi, would you mind to share here your test directory structure? |
Hi ! Thanks for your work. Any update on this issue ? |
Working on this one, there are some caveats to fix, will be ready in a couple of days |
Awesome, thank you very much for your work ! |
I've found a weird behaviour when running parallel tests, maybe someone's willing to have a deeper look here #1134 |
What Happened
As part of my transition from Laravel 9 to Laravel 10, I am also upgrading from Pest 1.x to 2.x. During this process, I encountered an issue concerning the resolution of datasets located within subfolders.
I'm not the only one with this problem, please refer to [laracast question] for more details. (https://laracasts.com/discuss/channels/testing/pest-global-datasets-not-allowed-in-modular-project)
How to Reproduce
Construct a dataset and place it within a subfolder inside the Datasets directory. Afterwards, execute the command
./vendor/bin/pest MyTest.php
, which unfortunately results in a failure.However, this situation is peculiar as executing the test through PHPStorm does not present any issues, indicating that the problem only occurs when running the test from the terminal...
Sample Repository
No response
Pest Version
2.34.4
PHP Version
8.2.16
Operation System
macOS
Notes
No response
The text was updated successfully, but these errors were encountered: