atoum/teamcity-extension

This package is abandoned and no longer maintained. No replacement package was suggested.

Add TeamCity support to atoum

1.1 2017-11-14 14:49 UTC

This package is auto-updated.

Last update: 2021-09-20 08:30:10 UTC


README

atoum's logo + TeamCity's logo with floating hearts

atoum/teamcity-extension Build Status

atoum is a PHP test framework. TeamCity is a software developed by Jetbrains for Continuous Integration (CI) and Continuous Delivery (CD).

TeamCity uses a non-standard specific test execution report format. This extension adds TeamCity support for atoum by supporting this particular report format.

Installation

With Composer, to include this extension into your dependencies, you need to require atoum/teamcity-extension:

$ composer require atoum/teamcity-extension '~1.0'

To always enable the extension, the .atoum.php configuration file must be edited to add:

use atoum\teamcity;

$extension = new teamcity\extension($script);
$extension->addToRunner($runner);

If you would like to enable the extension only when tests run from within a TeamCity environment, write:

$extension = new teamcity\extension($script);
$extension->addToRunnerWithinTeamCityEnvironment($runner);

The following screenshot shows the tests of this extension displayed in a TeamCity instance:

The extension in action inside TeamCity

Testing

Before running the test suites, the development dependencies must be installed:

$ composer install

Then, to run all the test suites:

$ vendor/bin/atoum --test-ext

License

Please, see the LICENSE file. This project uses the same license than atoum.