How to enable UnitHelper in coding for unit tests

I am trying to set up unit testing using code. I followed the guide and had the following:

unit.suite.yml

:

class_name: UnitTester
modules:
    enabled: [UnitHelper, Asserts]

      

When I try to run codecept build

, I get the following exception:

[Codeception\Exception\Configuration]
UnitHelper could not be found and loaded

      

+3


source to share


1 answer


UnitHelper is not a built-in class, but a helper class created for a batch package.



You must run this command to create it: codecept generate:suite unit Unit

0


source







All Articles