{"id":26481993,"url":"https://github.com/kiwitcms/phpunit-plugin","last_synced_at":"2025-03-20T03:36:37.274Z","repository":{"id":34072298,"uuid":"160542870","full_name":"kiwitcms/phpunit-plugin","owner":"kiwitcms","description":"PHPUnit plugin for Kiwi TCMS","archived":false,"fork":false,"pushed_at":"2024-10-07T21:26:04.000Z","size":121,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T05:42:04.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kiwitcms.org","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiwitcms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://kiwitcms.org/#subscriptions"],"github":["kiwitcms"],"patreon":null,"open_collective":"kiwitcms","ko_fi":null,"tidelift":"pypi/kiwitcms","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null}},"created_at":"2018-12-05T15:58:14.000Z","updated_at":"2023-01-29T19:38:02.000Z","dependencies_parsed_at":"2024-04-23T08:48:46.807Z","dependency_job_id":"bc9e6d66-9c6d-480b-86b4-cdd5c564f320","html_url":"https://github.com/kiwitcms/phpunit-plugin","commit_stats":{"total_commits":67,"total_committers":6,"mean_commits":"11.166666666666666","dds":0.5970149253731343,"last_synced_commit":"41a1c4d2b95e1fbd05b39fe8662e02102fded37f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwitcms%2Fphpunit-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwitcms%2Fphpunit-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwitcms%2Fphpunit-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwitcms%2Fphpunit-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiwitcms","download_url":"https://codeload.github.com/kiwitcms/phpunit-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244545525,"owners_count":20469879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T03:36:36.722Z","updated_at":"2025-03-20T03:36:37.257Z","avatar_url":"https://github.com/kiwitcms.png","language":"PHP","funding_links":["https://kiwitcms.org/#subscriptions","https://github.com/sponsors/kiwitcms","https://opencollective.com/kiwitcms","https://tidelift.com/funding/github/pypi/kiwitcms","https://tidelift.com/badges/package/packagist/kiwitcms%2Fphpunit-plugin","https://tidelift.com/subscription/pkg/packagist-kiwitcms-phpunit-plugin?utm_source=packagist-kiwitcms-phpunit-plugin\u0026utm_medium=github\u0026utm_campaign=readme"],"categories":[],"sub_categories":[],"readme":"# PHPUnit plugin for Kiwi TCMS\n\n[![Build Status](https://travis-ci.org/kiwitcms/phpunit-plugin.svg?branch=master)](https://travis-ci.org/kiwitcms/phpunit-plugin)\n[![Tidelift](https://tidelift.com/badges/package/packagist/kiwitcms%2Fphpunit-plugin)](https://tidelift.com/subscription/pkg/packagist-kiwitcms-phpunit-plugin?utm_source=packagist-kiwitcms-phpunit-plugin\u0026utm_medium=github\u0026utm_campaign=readme)\n[![Become-a-sponsor](https://opencollective.com/kiwitcms/tiers/sponsor/badge.svg?label=sponsors\u0026color=brightgreen)](https://opencollective.com/kiwitcms#contributors)\n[![Twitter](https://img.shields.io/twitter/follow/KiwiTCMS.svg)](https://twitter.com/KiwiTCMS)\n\n## Configuration and environment\n\n#### 1. Install package\n\nThe preferred method of installation is via [`Composer`](https://getcomposer.org/). Run the following\ncommand to install the package and add it as a requirement to your project's\n`composer.json`:\n\n\n```\ncomposer require kiwitcms/phpunit-plugin\n```\n\n#### 2. Create `~/.tcms.conf` with the following contents:\n\n```\n[tcms]\nurl =\nusername =\npassword =\n\nproduct =\nproduct_version =\nbuild =\n\n```\nThe filename `~/.tcms.conf` is expanded to something like `/home/tcms-bot/.tcms.conf` on Linux\nand `C:\\Users\\tcms-bot\\.tcms.conf` on Windows, where tcms-bot is the username on the local computer.\n\nIt’s also possible to provide system-wide config in `/etc/tcms.conf`, which is valid only on Linux!\nOn Windows it would be `C:\\tcms.conf`.\n\nExecute the following command to find the exact location on your system:\n```\nphp configFilePath.php\n```\n\nSet the appropriate values.\n\nYou can set all of them as environment variables (config file values have precedence):\n\n```\nTCMS_API_URL =\nTCMS_USERNAME =\nTCMS_PASSWORD =\nTCMS_PRODUCT =\nTCMS_PRODUCT_VERSION =\nTCMS_BUILD =\nTCMS_RUN_ID =\n```\n\n#### 3. Add listener configuration to phpunit.xml\n\n```\n\u003clisteners\u003e\n    \u003clistener class=\"\\KiwiTcmsPhpUnitPlugin\\PHPUnit\\PHPUnitTestListener\" file=\"vendor/kiwitcms/phpunit-plugin/src/PHPUnit/PHPUnitTestListener.php\" /\u003e\n\u003c/listeners\u003e\n```\n\n### Other\n\nIf the product, product version or build do no exist, they will be created.\n\nA 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.\n\n### License\n\nDistributed under the terms of the [`GNU GPL v3.0`](http://www.gnu.org/licenses/gpl-3.0.txt) license, \"kiwitcms/phpunit-plugin\" is free and open source software\n\n\n### Issues\n\nIf you encounter any problems, please [file an issue](https://github.com/kiwitcms/phpunit-plugin/issues) along with a detailed description.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwitcms%2Fphpunit-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiwitcms%2Fphpunit-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwitcms%2Fphpunit-plugin/lists"}