You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Than you need to create Test directory in your module that will be used for searching of the test files. This directory can contain such sub-directories that are also test groups:
Model for test cases related to models
Block for test cases related to blocks that can be tested in isolation
Helper for test cases related to helpers
Controller for test cases related to controller actions together with layout and blocks
Config for test cases related to your module configuration file definitions
Your test case class should be named in such a way:
For instance if you want to test your custom product model in module called “MyCustom_Module” you need to create a test case class with such name:
MyCustom_Module_Test_Model_Product and extended from EcomDev_PHPUnit_Test_Case class
Group directories can have as many nested levels as you wish, system collects test case files recursively.