PHPackages                             n4m-ward/laravel-perry - 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. [API Development](/categories/api)
4. /
5. n4m-ward/laravel-perry

ActiveLibrary[API Development](/categories/api)

n4m-ward/laravel-perry
======================

0.0.7(11mo ago)58PHP

Since May 25Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/n4m-ward/perry)[ Packagist](https://packagist.org/packages/n4m-ward/laravel-perry)[ RSS](/packages/n4m-ward-laravel-perry/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

Perry - Swagger generator library using e2e tests
=================================================

[](#perry---swagger-generator-library-using-e2e-tests)

---

Summary
-------

[](#summary)

### [Setup](#setup)

[](#setup)

### [Creating Tests](#creating-tests)

[](#creating-tests)

### [Usage examples](#usage-examples)

[](#usage-examples)

### [Doing assertions](#doing-assertions)

[](#doing-assertions)

---

Setup
=====

[](#setup-1)

#### Install the library:

[](#install-the-library)

```
composer require n4m-ward/laravel-perry --dev
```

#### Run the following command once to generate the configuration files

[](#run-the-following-command-once-to-generate-the-configuration-files)

```
./vendor/bin/perry
```

After running the command above, two files will be created

- A `perry.json` file containing the following data:

```
{
    "testsFolderPath": "/tests/Perry",
    "testExecutorPath": "/vendor/bin/phpunit",
    "swaggerOutputPath": "/perry_output/swagger",
    "cacheOutputPath": "/perry_output/cache"
}
```

- A `BaseTestCase.php` file that you will extend in your e2e tests
- The `BaseTestCase` will be created in the following path: `/tests/Perry/BaseTestCase.php`
- You can change the path of this file if you want, or use your own `BaseTestCase`

```
