Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Pest 3: 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? (29 h 14 min)

You also get:

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

Already a member? Login here

Comments & Discussion

No comments yet…