3 ms·
I'm a BIG FAN of BATS (https://github.com/bats-core/bats-core https://github.com/bats-core/bats-core) however sadly BATS is no longer being maintained ––good th
by alpb 7y ago
I'm a BIG FAN of BATS (https://github.com/bats-core/bats-core https://github.com/bats-core/bats-core) however sadly BATS is no longer being maintained ––good thing it's still working.
- AdmiralAsshat 7y ago>however sadly BATS is no longer being maintained Are you sure? https://github.com/bats-core/bats-core/issues/266 https://github.com/bats-core/bats-core/issues/266
- alpb 7y agoLooks like it was finally forked https://github.com/sstephenson/bats/issues/150 https://github.com/sstephenson/bats/issues/150
- andrewl-hn 7y agoI used it for a big project about two years ago, and between it and Shellcheck I had pretty good time maintaining a relatively large Bash codebase (we're talking tens of thousands of lines of code across several distinct components). Initially I was skeptical, and tried using Node and Mocha for writing tests instead, but calling shell from other languages is pretty cumbersome, and at some point that became very annoying. I gave Bats a try and was pleasantly surprised. Once one gets used to it Shell is a really good language if the large chunk of your work is calling out external processes and passing the outputs between them. Sure, some language design choices of Shell are arcane and subpar, but with tools like Bats and Shellcheck it's possible to reach comparable levels of developer ergonomics that we all got used to with more popular languages.
- kohtatsu 7y agoBless you <3 Lots of bash hate on HN today. Shellcheck is the training wheels bash deserves, if you're learning it's indispensable just to harass you for quoting. https://shellcheck.net/ https://shellcheck.net/