codeception
Printing debug output to console in Codeception
See Debugging which says You may print any information inside a test using the codecept_debug function. And I’m using it in my *Cept class: codecept_debug($myVar); Your debug output is only visible when you run with –debug (-v doesn’t show it, but -vv and -vvv do): codecept run –debug And the output looked like: Validate MyEntity … Read more
Codeception, write acceptance tests with the pageObject design pattern and gherkin
I get “not found in contexts” warnings in my shell Ok, how to link gherkin files execution with steps defined in my own contexts classes (PageObjects, StepObjects, …)? We can read chapter “BDD > Configuration” in Codeception documentation: As we mentioned earlier, steps should be defined inside context classes. By default all the steps are … Read more
How can I run only one test from a suite?
You simply append a colon and the function name, like this: codecept run tests/acceptance/VisitorCest.php:myTestName or a shorter version: codecept run acceptance VisitorCest:myTestName (Notice the space between the suite-name and the file-name.)