Skip to content

Yii2 Codeception Comamnds

Qutaiba Rawashdeh edited this page Apr 21, 2015 · 1 revision
  • Run all Tests:

/home/qutaiba/.composer/vendor/bin/codecept run

You need to run this command from where your bootstrap configuration file lies in Yii2 case it will from inside /advanced/tests/codeception/frontend.

  • Run Single Test:

/home/qutaiba/.composer/vendor/bin/codecept run functional functional/LoginCept.php

From the same path, /home/qutaiba/.composer/vendor/bin/codecept is where codeception is. functional is the name of the suite the file name is usually functional.suite.yml but just the part without suite.yml is used functional/LoginCept.php the path to the test that you want to run