headsnet / codeception-extras
为 Codeception 添加各种有用的扩展
v0.1.1
2021-10-13 16:29 UTC
Requires
- php: >=7.2
- ext-json: *
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.0
- codeception/module-webdriver: ^1.0
- symfony/http-client: ^4.4 || ^5.0
Requires (Dev)
- phpunit/phpunit: ^8.5
- symplify/easy-coding-standard: ^8.1
This package is auto-updated.
Last update: 2024-09-13 23:19:03 UTC
README
此包为 Codeception 测试框架提供扩展。
可用扩展
WebDriver 扩展
- JS Logger - 记录 JavaScript 控制台消息
- Symfony Profiler URL - 获取失败测试的配置链接
- W3C HTML 验证 - 验证 HTML 源代码
其他扩展
- 测试后等待 - 在每个测试后添加延迟
要求
- 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