Add Cobra complexity in testing comment

This commit is contained in:
rwxrob 2022-04-21 12:35:26 -04:00
parent 53af4dbc50
commit 13a0b42b25
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

View File

@ -160,6 +160,15 @@ want the specific reasons.
sustainable, human-friendly command compositor to take us into the
future of command line interfaces.
* **Cobra interfaces are nearly impossible to test.**
Ever tried creating tests for all the different Cobra option
combinations? It's a case study in the science of exponential problem
complexity. By using a rooted node tree of commands, which
observe cached variables or singular configuration, Bonzai makes short
work of writing even the highest-level of tests against the commands
themselves as if they were run by a user.
## What People Are Saying
> "It's like a modular, multicall BusyBox builder for Go with built in