As your project matures, you start writing tests for your application. Hell, you might even do TDD and have it tested as you built it....
As your project matures, you start writing tests for your application. Hell, you might even do TDD and have it tested as you built it. But that leaves your admin panel in a difficult spot. It's still a mission-critical part of your app... but since it has so few users, it's difficult to justify the time to write tests for it. Hell, it's easy to even forget it's there, make changes to your Models or Requests for your application, and... basically break your backoffice. It's happened to us too!
What's the solution? Of course... admin panel tests! Even some basic tests that make sure your most used operations still work - Create, Update, Delete, List - will go a long way towards making sure as your app evolves... you're not breaking your admin panel. It's something every Backpack user has been solving in a different way, and with quite a bit of effort.
Historically it's been a little tricky to create feature tests for Backpack Operations... but we're happy to announce we have a new package - backpack/test-generators that will help you get there a lot faster.

In short, this package adds two commands:
php artisan backpack:tests - which will generate tests for your CrudController (only for the Create, Update, Delete, List operations)php artisan backpack:tests:status - which will show a general picture of what is tested in your CrudControllersFor most admin panels, this will help get 80% of your admin panel tested, in less than one hour (provided you already have Seeders and Factories for your models). And for the rest... thanks to the fact that you will already have most of your admin panel tested... LLMs will do a great job of filling in the gaps (eg. custom pages, custom features).
Especially today, when codebases evolve faster and faster due to AI, we think it's important to have the mission critical areas of your code tested. If that's the backoffice for you... we highly recommend you try our backpack/test-generators package - we think it'll help speed you up quite a bit. To help you with that, we have a limited-time 50% discount for this package - so go buy now! Of course, if you have bought our Everything bundle... you already have access to it, just go use it!
Thanks for using our packages - we hope you enjoy this one as much as we do. Cheers!
Subscribe to our "Article Digest". We'll send you a list of the new articles, every week, month or quarter - your choice.
What do you think about this?
Wondering what our community has been up to?