testingbot / codeception-extension
Codeception 扩展,用于将元数据报告回 TestingBot。
1.0.3
2017-09-16 09:52 UTC
Requires
- php: >=5.3.3
- testingbot/testingbot-php: >=1.0.0
Requires (Dev)
- codeception/codeception: ~1.8
This package is auto-updated.
Last update: 2024-09-22 00:38:17 UTC
README
这是一个 CodeCeption 扩展,它将测试元数据发送回 TestingBot。这样,你可以在 TestingBot 仪表板概览中看到测试名称、通过/失败状态等信息。
安装
-
将 testingbot/codeception-extension composer 包添加到项目的 composer.json 中或运行
composer require testingbot/codeception-extension
-
执行 composer 更新你的环境。
-
在 codeception.yml 文件中添加扩展和你的 TestingBot 凭证
actor: Tester paths: tests: tests log: tests/_output data: tests/_data support: tests/_support envs: tests/_envs settings: bootstrap: _bootstrap.php colors: true memory_limit: 1024M extensions: enabled: - Codeception\Extension\RunFailed - Codeception\Extension\TestingBotExtension config: Codeception\Extension\TestingBotExtension: key: "KEY" secret: "SECRET"
- 确保你的测试使用该扩展
modules: enabled: - WebDriver config: WebDriver: host: 'hub.testingbot.com' port: 80 browser: chrome url: 'http://www.google.com' capabilities: 'client_key': 'YOUR TESTINGBOT KEY' 'client_secret' : 'YOUR TESTINGBOT SECRET' 'build': 'codeception-testingbot' env: single: modules: config: WebDriver: capabilities: 'name': 'single_test'
- TestingBot 的
key
和secret
可在 testingbot 成员区域 获取
有关更多信息,请参阅此文档 此处