Reputation: 69
Can anybody provide the run command for Codeception in Yii2 from root folder? I tried
vendor/bin/codecept run 'patt/to/testfile'
but it doesn't work.
Upvotes: 0
Views: 2766
Reputation: 14860
By default your config file codeception.yml
is located in tests
. As such you can run the command as
vendor/bin/codecept run -c tests/ testsuitename path/to/testfile
Upvotes: 1
Reputation: 1032
you have to configure the path, where the configuration file is located:
vendor/bin/codeception run -c /path/to/config.yml testsuitename /path/to/testfile
HTH
Upvotes: 2