You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing an acceptance test suite and I have to make the environments easily configurable, but for this to work I need to be able to merge two or more environments (geoLocation, browser, os, urls).
What do you get instead?
If I run: .\codecept run tests\acceptance\acceptanceTestCest --env firefox the tests start running without issues with any environment I choose.
Now my problem is that if I try to merge the environments: .\codecept run tests\acceptance\acceptanceTestCest --env firefox,US I get the following message :
In Configuration.php line 306:
[Codeception\Exception\ConfigurationException]
Suite tests\acceptance\acceptanceTestCest.php was not loaded
And if I try to merge more than two environments i get this message:
Too many arguments, expected arguments "command" "suite" "test".
I looked everywhere for this issue and I did not find anyone that even encountered it. The closest thing I found was that tests would be ran only with the second environment.
Put the environments in _envs folder. Put the environments in codeception.yml
Other things I cannot remember right now.
Thanks !
EDIT: Also I have the project on jenkins as well and merging environments works perfectly there, but if I try to download the exact same project and run it locally it still doesn't work.
The text was updated successfully, but these errors were encountered:
try to add in acceptanceTestCest @env annotation,
exemple:
class AcceptanceTestCest
{
/**
* @env firefox
* @env chrome
* @env safari
*/
public function acceptanceTest( ....
I tried that but it did not work.
Also I have the project on jenkins as well and merging environments works perfectly there, but if I try to download the exact same project and run it locally it still doesn't work.
Any update?
I've encountered this while running suite in Jenkins with Codeception 4.1.4, but for me error occurrs only when -o or --override option added. However, running same combination locally works perfect.
My command looks like this /vendor/bin/codecept run api --env env1 --env env1,role1 --env env1,role2 --env env1,role3 -x groupname -g groupname -o "modules:config:rest:email:useremail@domain.com" -html -xml
What are you trying to achieve?
I'm writing an acceptance test suite and I have to make the environments easily configurable, but for this to work I need to be able to merge two or more environments (geoLocation, browser, os, urls).
What do you get instead?
If I run:
.\codecept run tests\acceptance\acceptanceTestCest --env firefox
the tests start running without issues with any environment I choose.Now my problem is that if I try to merge the environments:
.\codecept run tests\acceptance\acceptanceTestCest --env firefox,US
I get the following message :And if I try to merge more than two environments i get this message:
Details
My acceptance.suite.yml :
I looked everywhere for this issue and I did not find anyone that even encountered it. The closest thing I found was that tests would be ran only with the second environment.
I'm new to
Codeception
and probably I am missing something.I read the documentation on https://codeception.com/docs/07-AdvancedUsage#Environments and I don't seem to do anything wrong from there.
Things I tried:
Put the environments in _envs folder.
Put the environments in codeception.yml
Other things I cannot remember right now.
Thanks !
EDIT: Also I have the project on jenkins as well and merging environments works perfectly there, but if I try to download the exact same project and run it locally it still doesn't work.
The text was updated successfully, but these errors were encountered: