{"id":24397420,"url":"https://github.com/jdolba/slim-http-smoke-testing","last_synced_at":"2025-04-11T17:21:45.201Z","repository":{"id":33996219,"uuid":"164728682","full_name":"jDolba/slim-http-smoke-testing","owner":"jDolba","description":"HTTP Smoke Testing for your Slim Framework based application","archived":false,"fork":false,"pushed_at":"2022-08-04T07:16:52.000Z","size":24,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T13:11:40.287Z","etag":null,"topics":["phpunit","slim-framework","slim3","slimphp","smoke-test"],"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/jDolba.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-08T20:37:57.000Z","updated_at":"2024-01-03T15:56:51.000Z","dependencies_parsed_at":"2022-08-07T23:31:16.419Z","dependency_job_id":null,"html_url":"https://github.com/jDolba/slim-http-smoke-testing","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDolba%2Fslim-http-smoke-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDolba%2Fslim-http-smoke-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDolba%2Fslim-http-smoke-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDolba%2Fslim-http-smoke-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jDolba","download_url":"https://codeload.github.com/jDolba/slim-http-smoke-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248447708,"owners_count":21105164,"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":["phpunit","slim-framework","slim3","slimphp","smoke-test"],"created_at":"2025-01-19T22:27:15.272Z","updated_at":"2025-04-11T17:21:45.180Z","avatar_url":"https://github.com/jDolba.png","language":"PHP","readme":"# Slim framework HTTP Smoke testing\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status](https://travis-ci.org/jDolba/slim-http-smoke-testing.svg?branch=master)](https://travis-ci.org/jDolba/slim-http-smoke-testing)\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nThis simple package will load ALL your routes from `Slim\\App` and make\na Request on them to receive Response to assert expected return http code.\n\nIt is not very smart or bullet-proof check, but it\nwill simply tell you: *does it run?*.\n\nAfter initial configuration it is almost maintenance-free as it checks any new\nroutes automatically.\n\nInspired by\n[shopsys/http-smoke-testing](https://github.com/shopsys/http-smoke-testing)\nTHANK YOU!\n\n## Install\n\nVia Composer\n\n``` bash\ncomposer require --dev jdolba/slim-http-smoke-testing\n```\n\nThis package internally uses PHPUnit to run the tests.\nThat means that you need to setup your phpunit.xml properly.\n\n### WARNING\n***`Because this package will make a real Request`***\n***`be sure you are NOT executing this test on production db!`***\n\n\n## Usage\n\nCreate new PHPUnit test extending\n`\\JDolba\\SlimHttpSmokeTesting\\SlimApplicationHttpSmokeTestCase`\nclass and implement `setUpSmokeTestAndCallConfigure` and `customize` methods.\n\nYou can run your new test by:\n\n``` bash\nphp vendor/bin/phpunit tests/Smoke/MyAwesomeApplicationSmokeTest.php\n```\n\n[See example test class](example/tests/MyAwesomeApplicationSmokeTest.php)\n\n### About RequestDataSet\n\nEach your route uri + acceptable http method is represented as\n`\\JDolba\\SlimHttpSmokeTesting\\RequestDataSet`\nso for example\n```\n$app = new \\Slim\\App();\n$app-\u003eany('/', function ($request, $response, $args) {\n//...\nreturn $response;\n});\n```\nwill be interpreted as 6 independent DataSets, because Slim is using for \"any\":\n\n`['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']`\n\nyou can customize passed `$request` in your test class using `customize` method.\nThis 6 data sets will have routeName `'/'`, but\n\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email jakub@dolba.cz instead of using the issue tracker.\n\n## Credits\n\n- [Jakub Dolba][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/jdolba/slim-http-smoke-testing.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/jdolba/slim-http-smoke-testing/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/jdolba/slim-http-smoke-testing.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/jdolba/slim-http-smoke-testing.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/jdolba/slim-http-smoke-testing.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/jdolba/slim-http-smoke-testing\n[link-travis]: https://travis-ci.org/jdolba/slim-http-smoke-testing\n[link-scrutinizer]: https://scrutinizer-ci.com/g/jdolba/slim-http-smoke-testing/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/jdolba/slim-http-smoke-testing\n[link-downloads]: https://packagist.org/packages/jdolba/slim-http-smoke-testing\n[link-author]: https://github.com/jDolba\n[link-contributors]: ../../contributors\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolba%2Fslim-http-smoke-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdolba%2Fslim-http-smoke-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolba%2Fslim-http-smoke-testing/lists"}