Skip to content

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!

Tips

Precautions

  • Do not use , commas in your test names as it bugs out currently!

Best Practices

  • 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 your test()s or it()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!