WIP: PHPUnit plugin for Kiwi TCMS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
LICENSE
README.md
composer.json
composer.lock
kiwi.tcms.conf.dist
phpcs.xml
phpstan.neon
phpunit.xml

README.md

PHPUnit plugin for Kiwi TCMS

Configuration and environment

1. Install package

Add

"minimum-stability": "dev",

to your composer.json and execute

composer require kiwitcms/phpunit-plugin

2. Create kiwi.tcms.conf with the following contents:

TCMS_URL =
TCMS_USERNAME =
TCMS_PASSWORD =
TCMS_PRODUCT =
TCMS_PRODUCT_VERSION =
TCMS_BUILD =

TCMS_VERIFY_SSL_CERTIFICATES = true

Set the appropriate values.

You can set all of them as environment variables.

3. Add listener configuration to phpunit.xml

<listeners>
    <listener class="\KiwiTcmsPhpUnitPlugin\PHPUnit\PHPUnitTestListener" file="vendor/kiwitcms/phpunit-plugin/src/PHPUnit/PHPUnitTestListener.php">
        <arguments>
            <!-- path relative to the working directory phpunit is executed from-->
            <string>kiwi.tcms.conf</string>
        </arguments>
    </listener>
</listeners>

Other

If the 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 TCMS_RUN_ID in the config file, 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.