likesistemas / codeception-github-reporter
Reports unit test data for a pull request.
Installs: 13 062
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- ext-curl: *
- guzzlehttp/guzzle: ^6.0 | ^7.0
Requires (Dev)
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.0.0
- codeception/module-db: ^1.1
- codeception/module-phpbrowser: ^1.0
- codeception/module-rest: ^1.2
- codeception/module-webdriver: ^1.2
- phpunit/phpunit: ^5.7 || ^9.0
README
Installation
composer require likesistemas/codeception-github-reporter --dev
Codeception
Run your tests withLike\Codeception\GithubReporter
extension enabled:
On Linux/MacOS:
VAR={VALUE} php vendor/bin/codecept run --ext "Like\Codeception\GithubReporter"
On Windows
set VAR={VALUE}&& php vendor/bin/codecept run --ext "Like\Codeception\GithubReporter"
Alternatively, you can add Like\Codeception\GithubReporter
extension to suite or global config.
extensions: enabled: - Like\Codeception\GithubReporter
Enviroment Variables
- GITHUB_OWNER: Owner of repository
- GITHUB_REPO: Name of repository
- GITHUB_PR_NUMBER: Number of pull request of repository
- GITHUB_TOKEN: Token of the user's github who will post the comment
- IMGBB_TOKEN=cfac55381b42ee1e55bf17fa185b3b51
- TEST_LANG: Language
- TEST_TITLE: Message to show in title
- TEST_FOOTER: Show footer with version of PHP
- IMGBB_TOKEN: Token to upload image acceptance test