Bats: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:


* [[bash Unit Testing]]
* [[bash Unit Testing]]
=Overview=
Shell scripts can be tested easier if the functionality is broken into many small, reusable and independently testable functions.
A library of such function can be tested by sourcing the library into the BATS test and run the functions as their usual calling layer would invoke them.


=Subjects=
=Subjects=

Revision as of 16:23, 3 October 2019

External

Internal

Subjects

TODO

  • How to troubleshoot tests - how do I get access to intermediate stderr and stdout?