You haven't posted the error and stacktrace of a failed test.. the error should give you more insight into why they are failing.
Parallel Testing failing alot of tests
Hello everyone,
I recently integrated parallel testing in my application using ParaTest, and I've encountered significant issues. When running tests in parallel, I'm facing numerous errors, and I'm uncertain about the cause. Initially, I used the MigrateFreshSeedOnce trait in my test cases, which, when removed, led to some improvements. However, approximately 50% of my tests are still failing.
To provide more context, my application has around 1200 tests, and about 600 of these are failing under parallel testing conditions. I suspect the issue might be related to the database state or test data management, given the partial improvement after removing MigrateFreshSeedOnce.
Has anyone experienced similar issues with parallel testing, particularly when using ParaTest? Any insights or advice on troubleshooting and resolving this issue would be greatly appreciated. I'm particularly interested in strategies for ensuring database consistency and managing test data in a parallel testing environment. I visited this link as well but its not properly explained how to implement that: https://www.tonysm.com/running-laravel-feature-tests-in-parallel-with-paratest/ .
Thank you in advance for your help!
Please or to participate in this conversation.