Skip to content

Commit

Permalink
Merge pull request #284 from JHWelch/add-dataset-name-interpolation
Browse files Browse the repository at this point in the history
Add explanation of dataset name interpolation - With Markdown instead of webp
  • Loading branch information
nunomaduro authored Sep 27, 2024
2 parents 5d5aa9b + 1c431ba commit 49e4008
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ If a key is added, Pest will use the key when generating the description for the
<img src="/assets/img/datasets-named.webp?1" style="--lines: 2" />
</div>

If the test name includes `:dataset`, the description will be interpolated into the test name at that location.

```bash
✓ it validates the "first_name" field
✓ it validates the "email" field
```

It is important to notice that when using `closures` in your dataset, you must declare the arguments type in the closure passed to the test function.

```php
Expand Down

0 comments on commit 49e4008

Please sign in to comment.