禁用 mailcatcher 命令行消息

问题描述 投票:0回答:0

当使用 mailcatcher 测试邮件发送时,我使用 codeception 和 codeception-mailcatcher-module。 一切都作为 Github 动作运行,我触发了这样的东西:

php vendor/bin/codecept run "tests/codeception/acceptance/product1/backend/RecommendCest" -v --html --fail-fast

这样我就可以在命令行上非常紧凑地显示测试消息。

当测试包含邮件测试时,mailcatcher会提示大量这样的信息:

*   Trying 127.0.0.1:1080...
* Connected to 127.0.0.1 (127.0.0.1) port 1080 (#0)
> GET /messages HTTP/1.0
Host: 127.0.0.1:1080
User-Agent: GuzzleHttp/7

* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 310
< X-Content-Type-Options: nosniff
< Connection: close
< Server: thin 1.5.1 codename Straight Razor
< 
* Closing connection 0
* Hostname 127.0.0.1 was found in DNS cache
*   Trying 127.0.0.1:1080...
* Connected to 127.0.0.1 (127.0.0.1) port 1080 (#1)
> GET /messages/2.json HTTP/1.0
Host: 127.0.0.1:1080
User-Agent: GuzzleHttp/7

那怎么可能变得不那么冗长或完全禁用?

ruby automated-tests github-actions codeception mailcatcher
© www.soinside.com 2019 - 2024. All rights reserved.