[openstack-dev] [Fuel] Introducing bash unit testing
bpiotrowski at mirantis.com
Thu Jul 9 08:12:42 UTC 2015
as hopefully everyone knows, it's very challenging to prove that Bash
writing readable, maintainable code that actually works first time it is
Sadly we have quite a long history of merging various shell scripts without
Fortunately Peter Zhurba bore with me and we decided to use bats to test
fuel-migrate script. Obviously it's close to impossible to properly code
uses ssh or rsync, but it's good enough for functions that take some
data and return another set.
As we have quite a long history of merging various bash scripts without any
coverage, I'd like to introduce more formal rule requiring engineers to
bash code longer than 100 lines with unit tests. BATS tests are not
by our CI, but we're getting there.
My TL;DR skills are nowhere close to Dmitry Borodaenko's but let me try:
terrible so let's do our best to make it work as we want it to.
What is your opinion?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev