how to enable UnitHelper in codeception for unit tests

732 views Asked by At

I am trying to setup unit testing using codeception. I have followed the guide and have 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
1

There are 1 answers

0
Naktibalda On

UnitHelper is not a built-in class, but a helper class generated for unit suite.

You have to execute this command to create it: codecept generate:suite unit Unit