3 ms·
How might one compare/contast critic.sh against the following? * https://github.com/djui/bashunit https://github.com/djui/bashunit * https://github.com/kward/
by rubicks 7y ago
How might one compare/contast critic.sh against the following?
* https://github.com/djui/bashunit https://github.com/djui/bashunit
* https://github.com/kward/shunit2 https://github.com/kward/shunit2
- hinkley 7y agoNever used these, but lemme put my Technology Selector hat on for a moment. critic.sh seems to support BDD style tests whereas the other two are old-school XUnit style tests. BDD style tends to scale much higher, declares its test coupling more clearly, and survives refactoring and growing test plans much better, IME. It’s also stupid simple to split large files into several bits by cleaving the tests. But if I’m writing that much code I might switch to shebangs and use another language that has a better debugger and simpler code sharing. Python. Ruby. Node. For all the time I’ve been using Bourne shells I’ve hardly touched the actual debugging facilities (instead of echo all over) so my advice is a little biased against big bash.