How to run unit tests with Codeception in Yii2?
<p>I'm new to the Codeception framework and trying to run the unit test scripts from this directory:</p>

<pre><code>tests/codeception/frontend/unit
</code></pre>

<p>DB configuration for testing has been done in <strong>config-local.php</strong>. </p>

<p>Now, my question is how to run the test scripts? I've tried to run the following commands from the terminal:</p>

<pre><code>frontend tests
cd frontend
codecept build
codecept run
</code></pre>

<p>But it says <strong>Codecept: command not found.</strong></p>