dalamar/codeception-desktop-notifier

Codeception 的桌面通知扩展

dev-master 2019-08-08 14:25 UTC

This package is auto-updated.

Last update: 2024-09-09 01:41:15 UTC


README

此仓库演示了如何使用 Desktop Codeception 扩展 API。请检查其源代码以编写您自己的扩展。

Codeception 的桌面通知扩展

此包中的扩展可以包含到 Codeception 中,以接收测试结果的通知。

这些通知仅限于几个基本示例。建议根据您的实际需求进行分支和修补。

通知通过 jolinotif 库(由 JoliCode 提供)实现。

安装

安装此包

composer require dalamar/codeception-desktop-notifier --dev

codeception.yml 配置文件中启用扩展

示例

paths:
    tests: tests
    log: tests/_log
    data: tests/_data
    helpers: tests/_helpers
extensions:
    enabled:
      # enable desktop notifications
      - Dalamar\Codeception\Extension\DesktopNotifier # extension class name

如果您像我一样,在 vagrant VM 内执行测试,那么您可能希望从虚拟机代理通知到主机机器。

为此,您需要安装 vagrant 插件 vagrant-notify 并按照说明操作。