mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

Fix breakage from Bats v1.0.0, bump to Bats v1.0.1 #245

Closed mbland closed 6 years ago

mbland commented 6 years ago

https://github.com/bats-core/bats-core/releases/tag/v1.0.0, while honoring the same interface as v0.4.0, introduced a few changes that required some cleanup of our Bats utilities:

There was a bug in Bats v1.0.0 in setting BATS_CWD that broke the "assertion-test-helpers: failing assertion must disable shell options" test case. Specifically, stack trace paths that should've looked like:

tests/assertion-test-helpers.bash

instead looked like:

go-script-bash/tests/assertion-test-helpers.bash

This was fixed by bats-core/bats-core#98.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.03%) to 94.997% when pulling f65af8ce04d2188c990543aed13f8cdb0fc901b4 on bats-v1.0.1 into c583616117bc87fb4bca17c4192e981312c0e102 on master.