How To Setup Testing Environment For Laravel Console Packages?
Junaid Qadir
Posted on December 14, 2019
I want to test my CLI package for Laravel in isolation meaning without setting up a Laravel app then putting it inside the packages
directory and loading it via composer.
I've been struggling to figure out a way to write tests for my Laravel CLI package since last week. I tried using testbench
but I failed to configure it to make it work. I've been reading tests and composer.json
files for may popular packages and tried following them but with no luck.
Looking forward for some help. I really appreciate it.
Thanks in advance.
💖 💪 🙅 🚩
Junaid Qadir
Posted on December 14, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.