我在这里查看了手册:http: //codeception.com/docs/07-AdvancedUsage 并且可以为方法设置@depens 注释。
class InvoiceStatusCest
{
public function testOne()
{
}
/**
* @depends testOne
*/
public function testTwo()
{
}
}
但令我惊讶的是,我的 testTwo()总是跳过,即使 testOne() 如果为空或通过...
我在控制台中看到
Running InvoiceStatusCest.testOne - Ok
- Skipped