4 ms·
Bats isn't a port of anything, and sometimes Bash is the right tool for the job. I maintain two other projects written in Bash (rbenv and ruby-build). I looked
by sstephenson 15y ago
Bats isn't a port of anything, and sometimes Bash is the right tool for the job.
I maintain two other projects written in Bash (rbenv and ruby-build). I looked, and couldn't find any suitable testing tools for Bash, so I created Bats.
My criteria for deciding what to work on in the open-source world is: do I need something that doesn't yet exist, or something whose existing implementations are unsuitable? If yes, I try to fill the void as best I can, and package it up nicely so others can use it too.
- michielsikkes 15y agoI also like contributing to projects if the vision and implementation are not too far off from what I would build myself. Otherwise, I find it hard to contribute to a project that is just too far off but might be able to do the same.
- mlafeldt 15y agoAnother test framework written in (pure) shell is Sharness: http://git.io/sharness http://git.io/sharness It was derived from the Git test harness. I'm already using it for a couple of my projects.
- abecedarius 15y agoFWIW here's a vaguely doctest-like tool I wrote: https://github.com/darius/tush https://github.com/darius/tush May be unsuitable for you, as you say -- it looks like it takes less typing/punctuation to write the example tests, though.
- sstephenson 15y agoWow, I really like the literate style. Great stuff.
- abecedarius 15y agoThanks!