commando icon indicating copy to clipboard operation
commando copied to clipboard

How do you test a command?

Open chippyash opened this issue 2 years ago • 1 comments
trafficstars

tl:dr; If I write a command, how do I test it

I've been using your Commando for a little while now. Very similar to PHP Symfony Console, which I have used since God was a small child. Now I need to unit test some production code that uses it. It's a bit opaque as to how you might do that. So just a little bit of documentation on how to set up a command so it can be tested in a unit test would be very gratefully appreciated.

Don't worry about virtual file systems - that's a subject for another repo (may come back here ;-) )

Regards chippyash

chippyash avatar Dec 05 '22 17:12 chippyash

bump

chippyash avatar May 06 '25 21:05 chippyash