2014-07-23 28 views

回答

2

必須配置的路徑,其中配置文件位於:

vendor/bin/codeception run -c /path/to/config.yml testsuitename /path/to/testfile 

HTH

+0

謝謝。現在,我得到了致命的錯誤:運行單元測試時未找到類。似乎是命名空間的問題?或與引導文件配置? – sapo

+0

現在工作正常。 vendor/bin/codeception運行testsuitename/path/to/testfile爲我工作。謝謝 – sapo

1

默認情況下,您的配置文件codeception.yml位於tests。因此,您可以運行命令爲

vendor/bin/codecept run -c tests/ testsuitename path/to/testfile