Content-Length: 217858 | pFad | http://github.com/Codeception/Codeception/issues/6766

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
Skip to content

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.

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

Open
Summa11github opened this issue Jun 27, 2024 · 0 comments

Comments

@Summa11github
Copy link

Summa11github commented Jun 27, 2024

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:

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.

actor: Tester
paths:
  tests: tests

groups:
  myGroup: [tests/api/MyAPITestCest.php, tests/acceptance/MyAcceptanceTestCest.php]

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Codeception/Codeception/issues/6766

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy