![]() In order to debug the actual “dostuff” endpoint, I have to take care of two things: the debug session Cookie and the PhpStorm debug configuration. Public function testDoStuff(ApiTester $I) The Acceptance tests I want to debug are basically just testing a REST API, so it’s usually firing HTTP GET/POST requests against various endpoints: Debugging Codeception Unit tests is as easy as for phpUnit, you just have to make sure that the XDEBUG_SESSION is set as described in my post about CLI debugging with Xdebug. I one of my current projects we use Codeception for both Unit- and Acceptance tests. ![]() Of course I also want to use it when I write my Tests. I use Xdebug not only to hunt bugs, but also for every day development work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |