I followed the official Codeception guide (from their website of course) and I created a simple test written in Gherkin.
With the command codecept gherkin:snippets
command, I printed all methods I must implement. Then I copied these methods to the tests/_support/AcceptanceTester.php
file.
My question is: today, it's a sample test, but tomorrow, if I must create a lot of acceptance tests, how do I organize my code ?
I suppose I must write each main scenario in several PHP files. But, where I can save these files? How do I link these files together?
Let's say I must create two big scenarios of acceptance tests. The Scenario A
can be run alone, but the Scenario B
must be run after the Scenario A
.
Where do I need to create the files A and B? And, how can I "say" to Codeception I can run the Scenario B
only after the A
has been executed?
Sorry for my English, I hope my questions are clear.