Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing 在PhpStorm中调试项目单元测试时,如何显示codecept_调试消息?_Unit Testing_Phpstorm_Codeception - Fatal编程技术网

Unit testing 在PhpStorm中调试项目单元测试时,如何显示codecept_调试消息?

Unit testing 在PhpStorm中调试项目单元测试时,如何显示codecept_调试消息?,unit-testing,phpstorm,codeception,Unit Testing,Phpstorm,Codeception,通过PhpStorm运行单元测试时,忽略函数codecept\u debug的输出 我已将我的测试跑步者选项设置为: 在mycodeception.yml中,我还有: settings: bootstrap: _bootstrap.php colors: true debug: true memory_limit: 1024M 在命令行上显示codecept_debug的输出尚未实现:。目前,PHPStorm仍不支持该问题,请对此问题进行投票/评论,但您可以通过

通过PhpStorm运行单元测试时,忽略函数
codecept\u debug
的输出

我已将我的测试跑步者选项设置为:

在my
codeception.yml中,我还有:

settings:
    bootstrap: _bootstrap.php
    colors: true
    debug: true
    memory_limit: 1024M

在命令行上显示
codecept_debug
的输出

尚未实现:。目前,PHPStorm仍不支持该问题,请对此问题进行投票/评论,但您可以通过以下方式解决此问题:

  • codecept\u调试($variable)
    调用更改为
    echo print\r($variable,true)

与使用
codecept_debug
执行此操作的方式相同,在运行测试时,输出应显示在PHPStorm的终端上

上次我检查时,它不能这样做。不是我期望的答案:)希望他们能解决它。
settings:
    bootstrap: _bootstrap.php
    colors: true
    debug: true
    memory_limit: 1024M