likesistemas/codeception-github-reporter

Reports unit test data for a pull request.

0.5.0 2021-03-12 11:53 UTC

This package is auto-updated.

Last update: 2024-04-12 19:01:51 UTC


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