Sunday, June 9, 2019

shell testing

I have never seen in my life a bash shell being covered by automated tests.

I have thought of using Java and Mockito and Junit5, but it's not very straightforward to run shells from Java (in 2019.... maybe in 2 years it will be normal).

But I think it would be an excellent idea.

This is an inspiring article

This is the shunit2 framework:

Here the reference manual for shell scripting but it's a bit too academic. this one is richer of examples

PS shell scripting sucks

No comments: