-
Notifications
You must be signed in to change notification settings - Fork 0
A ‐ [TALL] ‐ 06 ‐ Pest
GoodM4ven edited this page Jun 2, 2024
·
3 revisions
Pest is the tip of the iceberg for Laravel's eloquence before elegance, as PHPUnit is too much of a boomer to care!
- Do not use
,
commas in your test names as it bugs out currently!
- Always keep your test files as minimal as possible (one for each service class - ArabicTest - with traits or for all validation rules and so on) and then
describe('HandlesPunctuation trait → removeAllPunctuation function', function () { ... })
it just like this, so that you can separate yourtest()
s orit()
s inside for various use-cases and where naming will be so easy to come up with since the group's description eliminates 75% percent of the possible confusion!