-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Cannot find TestCase object on call stack, related to issue 5403 #902
Comments
Hey, @vsko-dev . Thank you for your report. I was not able to reproduce the bug by following the same steps you have mentioned: I will close this issue in order to preserve our organization. Feel free to open a new issue whenever you need. |
In case someone still has the problem and wanders here, this worked for me: |
Further to @rooselle's comment - This didn't resolve my issue with Github actions unfortunately. The problem for me seems to be because composer in my Github Action runs as The only way I've found to address this, is by either running - name: Install Dependencies
uses: php-actions/composer@v6
with:
php_version: '${{ matrix.php-version }}'
php_extensions: intl gd pcntl zip bcmath http exif
- name: Update Composer 'vendor' Directory Permissions
run: sudo chown runner:docker -R vendor
- name: Execute tests
run: php artisan test It should be possible to set the ./vendor/bin/pest --cache-directory="./storage" I checked the My issue is resolved by updating the permissions above, but hopefully this helps someone else out. |
Hello I have an issue related to 5403
Use this versions:
"phpunit/phpunit": "10.3.1",
"pestphp/pest": "2.12.2",
"pestphp/pest-plugin-laravel": "2.10"
I have a standard tests from Laravel pure installation: Tests\Feature\ExampleTest and Tests\Unit\ExampleTest
Try to run them from container 'laravel.test' from Laravel Sail:
When I tried to run them from local machine, got an error:
Would you happen to have any suggestions? Forward thanks.
The text was updated successfully, but these errors were encountered: