我如何编写多个Cest或Cept文件的测试套件......?

时间:2015-09-29 06:03:17

标签: codeception

我是Codeception的新手,代码将在单个文件中正确执行,但我应该如何在Cest或Cept格式的php文件的单个测试套件中执行所有文件。

2 个答案:

答案 0 :(得分:1)

要在测试套件中执行所有Cept和Cest文件(例如在yourSuite.suite.yml中定义),请运行

codecept run path/to/your/testCept.php

执行特定的Cept / Cest文件运行

codecept run path/ti/yout/testCest.php:tryToTest

执行Cest类的特定测试(Cest类的公共方法,例如TryToTest())运行

SharedPreferences settings = getSharedPreferences(appName,0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("key","lang");
editor.commit();

答案 1 :(得分:0)

简单地运行它 php codecept.phar run suite

e.g。 php codecept.phar run unit

相关问题