Skip to content

phpguard/plugin-phpunit

Repository files navigation

PHPUnit Plugin

PHPUnit plugin for PhpGuard

License Latest Stable Version HHVM Status Scrutinizer Code Quality Master Build Status Coverage Status

Installation

Using composer:

$ cd /paths/to/project
$ composer require --dev "phpguard/plugin-phpunit @dev"

Options

Complete configuration options for PHPUnit plugin:

  • cli The options to passed to the phpunit command. Default: null
  • all_on_start Run all tests on startup. Default: false
  • all_after_pass Run all tests after changed tests pass. Default: false
  • keep_failed Remember failed tests and keep running them until pass. Default: false
  • always_lint Always check file syntax with php -l before run. If check syntax failed, phpunit command will not running. Default: true
  • run_all_cli The options to passed to the phpunit command. Default value will be using cli options

Configuration Sample

# /path/to/project/phpguard.yml
phpunit:
    options:
        cli:            "--testdox --colors"
        all_on_start:   false
        all_after_pass: false
        keep_failed:    true
        always_lint:    true
        run_all_cli:    "--colors"
    watch:
        - { pattern: "#^src\/(.+)\.php$#", transform: "functional/${1}Test.php" }
        - { pattern: "#^functional\/.*Test.php$#" }

About

PHPUnit Plugin for PhpGuard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published