在codeception中没有跳过的测试的名称


No names for skipped tests in codeception

在我的功能测试中(使用Symfony3,Codeception 2.1.7和PHPUnit 5.2.10),当我运行php vendor/bin/codecept run时,跳过的测试(用$scenario->skip调用)按以下方式显示:

Example test (ExampleCest::test) Skipped

但是在输出结束时,在时间和内存统计之后,会弹出以下附加输出:

There were 2 skipped tests:
---------
1) 
---------
2) 

此时似乎没有必要再次显示跳过的测试,更毫无意义的是完全缺乏信息 - 没有名称或提示,即使我尝试给测试命名($I->wantTo)或注释($scenario->comment)。有没有办法改进codeception输出 - 删除最后一段,或者至少添加一些有用的信息?

此问题已在主分支中修复,因此Codeception 2.2将正确显示跳过的测试。https://github.com/Codeception/Codeception/issues/2654

您可以通过使用 -v 或 --debug 参数运行 Codeception 来获取一些有用的信息。