-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Codeception/Robot - Groups - Php 8.1 - tests data wrong path #6404
Comments
I tried using a
But If can be useful i guess through my debug that the problem is the way that path of tests are handled differently when are Cest and Unit. Or on config part, the fact that Codeception run do not automatically add the suite directory when running group tests instead |
I guess that it was broken by #6292 in 4.1.24, try downgrading to 4.1.23 and see if it helps |
Thank you @Naktibalda , you saved me! 😄 It helped, now i changed my sed to let only relative path: |
Sorry, @sviluppo looks like I accidentally broke your setup, however, this allowed tests to run on included group. |
@DavertMik sorry to mention you here, I can also create a new issue but I think that might come to a quicker solution. Can you say how this change helps to run tests on included groups? This was what we did prior to this release and this changed line breaks it https://github.com/Codeception/Codeception/pull/6292/files#diff-a7930bc6948cf3fb3765c3221caebc0ee98bfb5a93adcd078c4586e74f5032edL113 We have a codeception.yml on root level, including other modules which again have suites. Let's say simplified
api.suite.yml
Because of the mentioned line this resolves to |
Hello, I am doing an upgrade from php 7.3 to php 8.1 and i am also updating my composer dependencies.
The framework i am using is Yii2 but i don't think that is something framework related, probably dependencies breaking changes, but i found the causes but no the solutions.
After the upgrade the command
vendor/bin/codecept run -f
seems fail with my backend suite that use Groups.And also Parallel Test (with codeception/robo-paracept) are going crazy.
With Php 7.3 everything is working fine.
I have my main codeception.yml in my root folder
And in backend folder i have my codeception.yml
On my 8.1 upgraded branch if i run
vendor/bin/codecept run -f
i get this error:He's basically not getting data inside backend/tests folder, but he's searching into the root.
Weird behavior that seems related to the groups config option because if remove
or if replace it with
backend/tests/_data/paracept_*
my backend tests run without problem like common/console are already doing because they don't use groups.If i also run
vendor/bin/robo parallel:run
i get:This because the path of the tests are now written adding "backend" into paracept_1:
On my 7.3 branch:
tests/api/TestCrudApiCest.php:testCreatingRecordWithGoodRequest
On my 8.1 branch:
backend/tests/api/TestCrudApiCest.php:testCreatingRecordWithGoodRequest
Can you maybe pointing me on the right direction?
I have red Codeception and Robo docs but i didn't found breaking changes.
Thank you.
Composer - Working Version - Php 7.3
Composer - Almost Working Version - Php 8.1
The text was updated successfully, but these errors were encountered: