https://github.com/testingbot/codeception-extension
Extension to report meta-data from Codeception back to TestingBot
https://github.com/testingbot/codeception-extension
Last synced: 9 months ago
JSON representation
Extension to report meta-data from Codeception back to TestingBot
- Host: GitHub
- URL: https://github.com/testingbot/codeception-extension
- Owner: testingbot
- Created: 2016-08-26T10:46:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T09:52:20.000Z (over 8 years ago)
- Last Synced: 2025-04-22T13:06:31.648Z (9 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Codeception: TestingBot Extension
==================================
This is a CodeCeption extension that will send test meta-data back to TestingBot.
This way, you can see the test name, passed/failed state and more in the TestingBot dashboard overview.
Installation
--------------
+ Add the testingbot/codeception-extension composer package to the project's composer.json or
run `composer require testingbot/codeception-extension`
+ Execute composer to update your environment.
+ Add the extension and your TestingBot credentials in the codeception.yml file:
```json
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"
````
+ Make sure your tests use the extension:
```json
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'
```
* The TestingBot `key` and `secret` are available in the [testingbot member area](https://testingbot.com/members/user/edit)
Refer to this documentation [here](http://codeception.com/docs/02-GettingStarted#Configuration) for further explanation.