https://github.com/badoo/phpunit-testlistener-teamcity
Reporting Test in TeamCity using Service Messages
https://github.com/badoo/phpunit-testlistener-teamcity
Last synced: about 1 year ago
JSON representation
Reporting Test in TeamCity using Service Messages
- Host: GitHub
- URL: https://github.com/badoo/phpunit-testlistener-teamcity
- Owner: badoo
- Created: 2012-04-09T18:35:01.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2015-06-15T10:57:12.000Z (about 11 years ago)
- Last Synced: 2024-04-20T17:45:52.169Z (about 2 years ago)
- Language: PHP
- Homepage:
- Size: 161 KB
- Stars: 5
- Watchers: 15
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHPUnit_Extensions_TeamCity_TestListener
========================================
`PHPUnit_Extensions_TeamCity_TestListener` is extension for integration PHPUnit and TeamCity. Based on PHPUnit's TestListner feature and TeamCity's Service Messages providing fast and easy test reporting during build process.
Requirements
------------
* PHPUnit 3.6
* TeamCity 7.0
Installation
------------
`PHPUnit_Extensions_TeamCity_TestListener` should be installed using the PEAR Installer, the backbone of the [PHP Extension and Application Repository](http://pear.php.net/) that provides a distribution system for PHP packages.
Depending on your OS distribution and/or your PHP environment, you may need to install PEAR or update your existing PEAR installation before you can proceed with the following instructions. `sudo pear upgrade PEAR` usually suffices to upgrade an existing PEAR installation. The [PEAR Manual ](http://pear.php.net/manual/en/installation.getting.php) explains how to perform a fresh installation of PEAR.
The following two commands (which you may have to run as `root`) are all that is required to install PHPUnit using the PEAR Installer:
pear config-set auto_discover 1
pear install badoo.github.com/PHPUnit_TestListener_TeamCity
After the installation you can find source files inside your local PEAR directory; the path is usually `/usr/lib/php/PHPUnit`.
Documentation
-------------
Add Build Step in TeamCity:
phpunit --printer PHPUnit_Extensions_TeamCity_TestListener
Press "Run..." button in TeamCity.
Now build will display executed tests in realtime in "Overview" screen