Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lopsum's avatar
Level 5

Setting up unit tests (failed on github actions but good on local)

Hello,

To improve my knowledge, I'm developing a CRM with Laravel v11 and FilamentPHP v3.3. For this app, I'm trying to set up unit tests with Pest (which is new for me...). The aim is for the tests to run when I push a commit to GitHub via Github actions.

I've read several tutorials for writing tests and after running a few of them, I can see that they run successfully locally, without returning any errors:

All tests successfull

However, when I go via GitHub (or locally via Act), some tests fail :

The tests fail at the Features level on the same functions. Knowing that I use the same logic in my functions, I wonder if I've done it right... Here's my Feature/UsersTest for example:

Do you see anything strange or wrong? Thanks for your help :)

0 likes
0 replies

Please or to participate in this conversation.