Skip to content

Commit

Permalink
PhpSpecRunExtension: update configuration example for PhpSpec 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ek9 committed Mar 27, 2017
1 parent 0e74401 commit b505126
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,12 @@ Next, Activate the [PhpSpec][2] extensions in `phpspec.yml` of your project:
```yaml
# phpspec.yml
extensions:
RMiller\BehatSpec\Extension\BehatSpecExtension\PhpSpecExtension:
rerunner:
path: vendor/bin/phpspec
commands: [describe, exemplify, your_own_fancy_command]
config: path/to/phpspec.yml #optional
RMiller\BehatSpec\Extension\BehatSpecExtension\PhpSpecExtension: ~
# The below part is only needed if you want to customize the defaults
RMiller\BehatSpec\Extension\PhpSpecRunExtension\PhpSpecRunExtension:
path: bin/phpspec
commands: [describe, exemplify, your_own_fancy_command]
config: phpspec.yml
```

**Note!** The configuration example above will also make sure that
Expand Down
7 changes: 3 additions & 4 deletions src/Extension/PhpSpecRunExtension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ commands. This can be overridden when enabling extension in `phpspec.yml`:
# ..
extensions:
RMiller\BehatSpec\Extension\PhpSpecRunExtension\PhpSpecRunExtension: ~
rerunner:
path: vendor/bin/phpspec # path to phpspec bin
commands: [describe, exemplify] # commans
config: path/to/phpspec.yml #optional # path to phpspec.yml (optional)
path: vendor/bin/phpspec # path to phpspec bin
commands: [describe, exemplify, other_cmd] # commands
config: path/to/phpspec.yml # custom phpspec.yml path
```

This will now also execute the run command after the exemplify command added by
Expand Down

0 comments on commit b505126

Please sign in to comment.