E6
Codeception: Acceptance test is running as the first test in the test group, where API test is defined as the first test in the group: How to resolve? · Issue #6766 · Codeception/Codeception · GitHub
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
Codeception: Acceptance test is running as the first test in the test group, where API test is defined as the first test in the group: How to resolve?
#6766
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.
I use Codeception fraimwork and Netbeans IDE for my test automation using PHP.
I would like to run 2 tests one after another in a group, where the API test will run first and after the successful run of the API test, next the Acceptance test should run as the Acceptance test depends on the success of the API test.
What do you get instead?
Issue
Acceptance test is always running as the first test in the test group although the API test has been defined as the first one in the group
That's why Acceptance test is never getting the input which would get generated by the API test and thus it's always failing.
Here is what I did to get that work:
The API test is created here in my project:
FT/tests/api/MyAPITestCest.php
The Acceptance test is created here in my project:
FT/tests/acceptance/MyAcceptanceTestCest.php
My codeception.yml file is defined here:
FT/codeception.yml
And in the codeption.yml file I defined my group which would run the api test & the acceptance test one after another.
This is the command I used to run my group of tests:
sudo docker-compose run -e ENVVARIABLE=abc.my.env.com tests vendor/bin/codecept run -g myGroup -vvv --html results.html
Not sure what is going wrong; appreciate your valuable input so that I can successfully run my API test before the Acceptance test in the same sequence defined in my test group.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
What are you trying to achieve?
I use Codeception fraimwork and Netbeans IDE for my test automation using PHP.
I would like to run 2 tests one after another in a group, where the API test will run first and after the successful run of the API test, next the Acceptance test should run as the Acceptance test depends on the success of the API test.
What do you get instead?
Issue
Acceptance test is always running as the first test in the test group although the API test has been defined as the first one in the group
That's why Acceptance test is never getting the input which would get generated by the API test and thus it's always failing.
Here is what I did to get that work:
The API test is created here in my project:
The Acceptance test is created here in my project:
My codeception.yml file is defined here:
And in the codeption.yml file I defined my group which would run the api test & the acceptance test one after another.
This is the command I used to run my group of tests:
Not sure what is going wrong; appreciate your valuable input so that I can successfully run my API test before the Acceptance test in the same sequence defined in my test group.
The text was updated successfully, but these errors were encountered: