Skip to main content

Pest Team Management

Premium
2 min read

With Pest you can assign tests to a user, issue, or pull request. To use this feature, you must first specify a project.

tests/Pest.php:

pest()->extend(Tests\TestCase::class)
->use(Illuminate\Foundation\Testing\RefreshDatabase::class)
->in('Feature');
 
pest()->project()->github('LaravelDaily/Laravel-Testing-Course');

You can use gitlab, bitbucket, jira, or custom methods instead of GitHub.

For example, you can set a todo for a test and assign a user.

test('product shows when published at correct time', function () {
// ...
})->todo(assignee: 'PovilasKorop');

You can provide multiple assignees by providing them in an array.

Now, when running...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

No comments yet…