Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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.
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
Add a comment
By default your config file codeception.yml is located in tests. As such you can run the command as
codeception.yml
tests
vendor/bin/codecept run -c tests/ testsuitename path/to/testfile
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.