3 ms·
Apologies if this is a dumb question. I glanced at the linked document and it is not obvious to me if this is for testing bash or for testing bash scripts.
by HankB99 7y ago
Apologies if this is a dumb question. I glanced at the linked document and it is not obvious to me if this is for testing bash or for testing bash scripts.
- dejj 7y agoIt's for writing tests that look like bash scripts. I wonder if `shellcheck` can still save the day on them.
- inopinatus 7y agoNeither. It’s called that because it’s using a dialect/DSL of bash. It’s a general unit test tool, but working in bash orients Bats towards testing of scripted/automated infrastructure. I’ve used it for tests of Chef/Puppet configuration and found Bats a good fit. Seems odd to find it used as the test framework for a data management tool but clearly it floats their boat.
- verdverm 7y agoBATS is a testing framework, written in bash. https://github.com/bats-core/bats-core https://github.com/bats-core/bats-core It's really nice for when you want to run/test a bunch of things in bash and have nice output and test suites.