Hacker News new | past | comments | ask | show | jobs | submit login

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.



Neither. 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.


BATS is a testing framework, written in bash.

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.


It's for writing tests that look like bash scripts. I wonder if `shellcheck` can still save the day on them.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: