php - Run custom code after Codeception suite has finished -


i aware of _bootstrap.php file that's used set testing enviroment, etc., i'm looking way run code after entire test suite has finished.

note i'm not looking way run code after single class, i.e. _after, after classes.

is there way achieve this?

actually managed solve myself, here's how, if interested.

i created new helper class inside _support.

<?php  class datahelper extends \codeception\module {     public function _beforesuite()     {         // set before test suite     }      public function _aftersuite()     {         // tear down after test suite     } } 

you can enable module in suite configuration (the .yml files), this:

modules:     enabled:         - datahelper 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -