简体   繁体   English

没有在代码接收中跳过测试的名称

[英]No names for skipped tests in codeception

In my functional tests (with Symfony3, Codeception 2.1.7 and PHPUnit 5.2.10) the skipped tests (invoked with $scenario->skip ) are shown in the following way when I run php vendor/bin/codecept run : 在我的功能测试(使用Symfony3,Codeception 2.1.7和PHPUnit 5.2.10)中,当我运行php vendor/bin/codecept run时,以以下方式显示跳过的测试(使用$scenario->skip调用):

Example test (ExampleCest::test) Skipped

But at the end of the output, after time & memory statistics, the following additional output pops up: 但是在输出结束时,经过时间和内存统计后,会弹出以下附加输出:

There were 2 skipped tests:

---------
1) 
---------
2) 

It seems unnecessary to show skipped tests again at this point, and even more senseless is the utter lack of information - no name or hint, even if I try to give the tests a name ( $I->wantTo ) or comment ( $scenario->comment ). 此时似乎不必再次显示跳过的测试,甚至更毫无意义的是完全缺乏信息-没有名称或提示,即使我尝试为测试指定名称( $I->wantTo )或注释( $scenario->comment )。 Is there a way to improve the codeception output - remove the last paragraph, or at least add some useful information? 有没有一种方法可以改善代码接收的输出-删除最后一段,或者至少添加一些有用的信息?

This issue is fixed in the master branch, so Codeception 2.2 will display skipped tests correctly. 此问题已在master分支中修复,因此Codeception 2.2将正确显示跳过的测试。 https://github.com/Codeception/Codeception/issues/2654 https://github.com/Codeception/Codeception/issues/2654

You can get some useful information by running Codeception with -v or --debug parameters. 通过使用-v或--debug参数运行Codeception,可以获得一些有用的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM