sapo
sapo

Reputation: 69

Run command for codeception in yii2

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

Answers (2)

topher
topher

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

rickroyce
rickroyce

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

Related Questions