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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -