{"id":19390826,"url":"https://github.com/tecnickcom/tc-lib-testrest","last_synced_at":"2026-04-18T12:04:31.276Z","repository":{"id":57066261,"uuid":"46923468","full_name":"tecnickcom/tc-lib-testrest","owner":"tecnickcom","description":"Library to test end-to-end RESTful services using Behat ","archived":false,"fork":false,"pushed_at":"2025-05-13T13:41:55.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-07-18T15:58:59.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tecnickcom.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},"funding":{"custom":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20tc-lib-testrest%20project"]}},"created_at":"2015-11-26T11:42:24.000Z","updated_at":"2025-05-13T13:41:59.000Z","dependencies_parsed_at":"2022-08-24T14:54:00.169Z","dependency_job_id":null,"html_url":"https://github.com/tecnickcom/tc-lib-testrest","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/tecnickcom/tc-lib-testrest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-testrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-testrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-testrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-testrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecnickcom","download_url":"https://codeload.github.com/tecnickcom/tc-lib-testrest/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-testrest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-10T10:23:29.469Z","updated_at":"2026-04-18T12:04:31.268Z","avatar_url":"https://github.com/tecnickcom.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20tc-lib-testrest%20project","https://www.paypal.com/donate/?hosted_button_id=NZUEC5XS8MFBJ"],"categories":[],"sub_categories":[],"readme":"# tc-lib-testrest\n*PHP library to test end-to-end RESTful API services using Gherkin language (Behat)*\n\n[![Latest Stable Version](https://poser.pugx.org/tecnickcom/tc-lib-testrest/version)](https://packagist.org/packages/tecnickcom/tc-lib-testrest)\n[![Master Build Status](https://secure.travis-ci.org/tecnickcom/tc-lib-testrest.png?branch=master)](https://travis-ci.org/tecnickcom/tc-lib-testrest?branch=master)\n[![Master Coverage Status](https://coveralls.io/repos/tecnickcom/tc-lib-testrest/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/tecnickcom/tc-lib-testrest?branch=master)\n[![License](https://poser.pugx.org/tecnickcom/tc-lib-testrest/license)](https://packagist.org/packages/tecnickcom/tc-lib-testrest)\n[![Total Downloads](https://poser.pugx.org/tecnickcom/tc-lib-testrest/downloads)](https://packagist.org/packages/tecnickcom/tc-lib-testrest)\n\n[![Develop Branch](https://img.shields.io/badge/-develop:-gray.svg)](https://github.com/tecnickcom/tc-lib-testrest/tree/develop)\n[![Develop Build Status](https://secure.travis-ci.org/tecnickcom/tc-lib-testrest.png?branch=develop)](https://travis-ci.org/tecnickcom/tc-lib-testrest?branch=develop)\n[![Develop Coverage Status](https://coveralls.io/repos/tecnickcom/tc-lib-testrest/badge.svg?branch=develop\u0026service=github)](https://coveralls.io/github/tecnickcom/tc-lib-testrest?branch=develop)\n\n[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-87ceeb.svg)](https://www.paypal.com/donate/?hosted_button_id=NZUEC5XS8MFBJ)\n*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/donate/?hosted_button_id=NZUEC5XS8MFBJ)*\n\n* **category**    Library\n* **package**     \\Com\\Tecnick\\TestRest\n* **author**      Nicola Asuni \u003cinfo@tecnick.com\u003e\n* **copyright**   2015 MediaSift Ltd. \u003chttp://datasift.com\u003e, 2016-2017 Tecnick.com LTD \u003chttp://www.tecnick.com\u003e\n* **license**     The MIT License (MIT) - see [LICENSE](LICENSE)\n* **link**        https://github.com/tecnickcom/tc-lib-testrest\n\n## Description\n\nPHP library to test end-to-end RESTful API services using Gherkin language ([Behat](http://behat.org))\n\n\n## Installation\n\nThis project requires PHP 5.4.0+ to use the PHP built-in web server.\n\n* Create a composer.json in your projects root-directory and include this project:\n\n```json\n{\n    \"require-dev\": {\n        \"tecnickcom/tc-lib-testrest\": \"^2.10\"\n    }\n}\n```\n\nOr add to an existing project with: \n\n```bash\ncomposer require tecnickcom/tc-lib-testrest ^2.10\n```\n\n* Create a behat.yml file in the root directory of your project like the one in test/behat.yml and check the internal comments and options.\n* Create a test/features folder in your project like the one in test/features and write your own \".feature\" files like the provided example.\n* Create (or update) a makefile like the one in this project which contains the \"btest\" target. This target starts the PHP built-in server and execute the Behat tests.\n\n\n## Development - getting started\n\nFirst, you need to install all dependencies (you'll need [composer](https://getcomposer.org/)):\n```bash\n$ cd /tmp \u0026\u0026 curl -sS https://getcomposer.org/installer | php\n$ sudo mv composer.phar /usr/local/bin/composer\n```\n\nThe following command will download all the composer dependencies required for development and testing:\n```bash\nmake build_dev\n```\n\n### Running Tests\n\nThe internal unit tests includes a database testing, so you need to install MySQL and SQLite with PDO drivers.\nYou also need to create the following MySQL database with the right privileges:\n\n```sql\nCREATE DATABASE IF NOT EXISTS testrest_test;\nGRANT ALL ON testrest_test.* TO 'testrest'@'%' IDENTIFIED BY 'testrest';\nFLUSH PRIVILEGES;\n```\n\nYou also need to install APC and memcached to test all features.\n\nTo execute all the tests you can now run `make qa_all`.\n\nPlease issue the command `make help` to see all available options and execute individual tests.\n\n### Coding standards\n\nThis project follows the PSR2 coding standard. To see any errors in your code, you can use the `make phpcs` command.\nWe also use a tool to detect any code smells. To run it, use `make phpmd`.\n\nBefore submitting a Pull Request, please execute the `make qa_all` to be sure that no errors where introduced.\nAdditionally, please check the target/coverage/index.html report to be sure that every line of code is covered by a unit test.\nIf you add any new gherkin language feature please also add an example in test/features.\n\n\n## Developer(s) Contact\n\n* Nicola Asuni \u003cinfo@tecnick.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnickcom%2Ftc-lib-testrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecnickcom%2Ftc-lib-testrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnickcom%2Ftc-lib-testrest/lists"}