Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.99 KB

README.md

File metadata and controls

71 lines (49 loc) · 1.99 KB

PHPUnit plugin for Kiwi TCMS

Build Status Tidelift Become-a-sponsor Twitter

Configuration and environment

1. Install package

Add

"minimum-stability": "dev",

to your composer.json and execute

composer require kiwitcms/phpunit-plugin

2. Create .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>

Other

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.

License

Distributed under the terms of the GNU GPL v3.0 license, "kiwitcms/phpunit-plugin" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.