headsnet/codeception-extras

为 Codeception 添加各种有用的扩展

v0.1.1 2021-10-13 16:29 UTC

This package is auto-updated.

Last update: 2024-09-13 23:19:03 UTC


README

Build Status Latest Stable Version Total Downloads License

此包为 Codeception 测试框架提供扩展。

可用扩展

WebDriver 扩展

其他扩展

要求

  • PHP >=7.2
  • Codeception

安装

通过 Composer 安装此包

composer require --dev headsnet/codeception-extras

对于需要它们的扩展,配置 WebDriver 模块。

WebDriver:
    url: 'http://myapp.com'
    browser: chrome
    host: chrome
    port: 4444
    window_size: false
    capabilities:
        webStorageEnabled: true
        javascriptEnabled: true
        'goog:loggingPrefs':
            performance: 'ALL'
        'goog:chromeOptions':
            perfLoggingPrefs:
                enableNetwork: true

贡献

欢迎贡献。请提交每个拉取请求一个修复/功能的 pull request。

已为您配置 Composer 脚本以方便使用

> composer test       # Run test suite
> composer cs         # Run coding standards checks
> composer cs-fix     # Fix coding standards violations
> composer static     # Run static analysis with Phpstan