PHPUnit plugin for Kiwi TCMS
Configuration and environment
1. Install package
to your composer.json and execute
composer require kiwitcms/phpunit-plugin
.tcms.conf with the following contents:
[tcms] url = username = password = product = product_version = build =
Set the appropriate values.
You can set all of them as environment variables (config file values have precedence):
TCMS_API_URL = TCMS_USERNAME = TCMS_PASSWORD = TCMS_PRODUCT = TCMS_PRODUCT_VERSION = TCMS_BUILD = TCMS_RUN_ID =
3. Add listener configuration to phpunit.xml
<listeners> <listener class="\KiwiTcmsPhpUnitPlugin\PHPUnit\PHPUnitTestListener" file="vendor/kiwitcms/phpunit-plugin/src/PHPUnit/PHPUnitTestListener.php" /> </listeners>
If the product, product version or build do no exist, they will be created.
A new test run and test plan will be created on each run. You can set
run_id in the config file or
TCMS_RUN_ID env var, if you want to update a single run.
Distributed under the terms of the
GNU GPL v3.0 license, "kiwitcms/phpunit-plugin" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.