sh4ka/php-task-runner

Test Runner

Installs: 3 080

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:project

0.7.1 2019-07-26 07:12 UTC

This package is auto-updated.

Last update: 2020-06-30 01:21:28 UTC


README

This script is used to run CI tools like phpmd or phan. It generates a whitelist of accepted errors and allows your code to move forward while keeping your legacy code under control.

The first step is to define a baseline for your project. This baseline typically will be the last released version of your software. Then you generate a whitelist of your current errors and the runner will stop you from adding new errors to your legacy code.

At the moment you have 2 tools at your disposal, phpmd and phan. Start by enabling them in the config and adding them to your project if they are not there already.

Requirements

  • PHP
  • composer

Features

  • Flexible configuration.
  • Fast execution and diff generation.

Installation

composer require jfsdev/runner

Copy vendor/jfsdev/runner/config.yml.dist to your root and name it config.yml.

Useful Tools

Running Tests:

To define a baseline:

php vendor/bin/runner.php tests:run --baseline [baseline]

or

php vendor/bin/runner.php tests:run

to run tests against the current baseline.

Individual tools can be specified with the --tool flag.

php vendor/bin/runner.php tests:run --tool phan

Changelog

To keep track, please refer to CHANGELOG.md.

Contributing

Also please refer to CONTRIBUTION.md.

License

Please refer to LICENSE.