Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
'children' => [
'Livewire' => 'docs/plugins/livewire',
'Faker' => 'docs/plugins/faker',
'Watch' => 'docs/plugins/watch',
]
],
'Get involved' => [
Expand Down
6 changes: 3 additions & 3 deletions source/docs/plugins/faker.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The `faker()` function will create an instance of the Faker generator with the d
```php
it('generates a name using faker', function () {
$name = faker()->name;

assertIsString($name);
});
```
Expand All @@ -35,11 +35,11 @@ creating the instance of the Faker generator.
```php
it('generates a name using faker with locale', function () {
$name = faker('fr_FR')->name;

assertIsString($name);
});
```

Remember, for the full list of available Faker methods, please refer to the [Faker documentation](https://github.com/fzaninotto/Faker#formatters).

Next section: [Community →](/docs/community)
Next section: [Watch Plugin →](/docs/plugins/watch)
2 changes: 1 addition & 1 deletion source/docs/plugins/livewire.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ it('can be decremented', function () {

Remember, for the full list of available Livewire methods, please refer to the [Livewire documentation](https://laravel-livewire.com/docs/testing).

Next section: [Faker →](/docs/plugins/faker)
Next section: [Faker Plugin →](/docs/plugins/faker)
35 changes: 35 additions & 0 deletions source/docs/plugins/watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Watch Plugin
description: The Watch Plugin
extends: _layouts.documentation
section: content
---

# Watch Plugin

The Watch plugin for Pest keeps an eye on your `tests/` folder and automatically run your Pest tests on file change.

Follow these two steps to install it:

1. [**Install fswatch**](https://github.com/emcrisostomo/fswatch#getting-fswatch) on your machine, or check if you already have it:

```bash
fswatch --version
```

2. Install the Watch plugin using Composer:

```bash
composer require pestphp/pest-plugin-watch --dev
```


This will add a new option to your Pest CLI so you can start watching any updates on your `tests/` folder.

**Just start Pest with the following command:**

```bash
pest --watch # Night gathers, and now my watch begins
```

Next section: [Community →](/docs/community)