smetdenis/phpunit-teamcity-testlistener

PHPUnit test listener for TeamCity CI Server

1.1.1 2015-06-16 07:18 UTC

README

Latest Stable Version Total Downloads License Build Status Dependency Status Scrutinizer Code Quality SensioLabsInsight Code Coverage

PHPUnit TeamCity TestListener is extension for integration PHPUnit and TeamCity continious integration server. Based on PHPUnit's TestListener feature and TeamCity's Service Messages providing fast and easy test reporting during build process.

Requirements

  • PHPUnit 3.7
  • TeamCity 7.0+

Installation

Simply add a dependency on munkie/phpunit-teamcity-testlistener to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file:

{
    "require-dev": {
        "smetdenis/phpunit-teamcity-testlistener": "dev-master"
    }
}

Documentation

Add Build Step in TeamCity:

phpunit --printer SmetDenis\\TeamCity\\TestListener

Press "Run..." button in TeamCity. Now build will display executed tests in realtime in "Overview" screen