Bats: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=


* https://github.com/bats-core/bats-core.git
* https://github.com/sstephenson/bats
* https://github.com/sstephenson/bats
* https://opensource.com/article/19/2/testing-bash-bats
* https://opensource.com/article/19/2/testing-bash-bats
Line 7: Line 8:


* [[bash Unit Testing]]
* [[bash Unit Testing]]
 
* [[tap-xunit]]
=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=


* [[bats Concepts|Concepts]]
* [[bats Concepts|Concepts]]
* [[bats Installation|Installation]]
* [[bats Operations|Operations]]


=TODO=
=TODO=


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

Latest revision as of 02:10, 22 August 2020