PHPackages                             colombo/autohttptests - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. colombo/autohttptests

ActiveLibrary[Testing &amp; Quality](/categories/testing)

colombo/autohttptests
=====================

Autogenerate http tests for laravel

v1.0.5(5y ago)16MITPHPPHP ~5.6|~7.0

Since Oct 5Pushed 5y agoCompare

[ Source](https://github.com/vuthaihoc/autohttptests)[ Packagist](https://packagist.org/packages/colombo/autohttptests)[ Docs](https://github.com/eduardoarandah/autohttptests)[ RSS](/packages/colombo-autohttptests/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

Laravel autohttptests
=====================

[](#laravel-autohttptests)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9a51f759bcfc2dae635d6188dc1c20674d22c11cff087a9bf6718230f957cb94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6564756172646f6172616e6461682f6175746f6874747074657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eduardoarandah/autohttptests)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/575fdc36c82bfcd1c5f50e04f04234af77a6a99c6a2c50dacd19f5ed1a2705a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6564756172646f6172616e6461682f6175746f6874747074657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eduardoarandah/autohttptests)

**No more writing tests by hand =D**

Just execute the command to record your actions as http tests

```
php artisan autohttptest:create
```

[![imagen](https://user-images.githubusercontent.com/4065733/31252701-a10f4580-a9e7-11e7-8b83-92cfc4b962f3.png)](https://user-images.githubusercontent.com/4065733/31252701-a10f4580-a9e7-11e7-8b83-92cfc4b962f3.png)

The command will **intercept** your requests and translate the response as a test.

When finished, your test will be saved in tests/Feature/

Demo in video
-------------

[](#demo-in-video)

[![autohttptests-gif](https://user-images.githubusercontent.com/4065733/88353656-fcf9cc00-cd23-11ea-86b3-6c096378f540.gif)](https://user-images.githubusercontent.com/4065733/88353656-fcf9cc00-cd23-11ea-86b3-6c096378f540.gif)

**What does it test?**

- Request acting as same user
- Make request using the same verb (GET,PUT,POST) with same arguments
- Assert http response code
- Assert errors
- Assert redirection

Example code
------------

[](#example-code)

```
