mbland / go-script-bash

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

lib/bats: Extract `lib/bats/helper-function` #159

Closed mbland closed 7 years ago

mbland commented 7 years ago

First part of #156. Though it's still a work in progress, the speedup in the tests with this new behavior added to the functions from lib/testing/environment is substantial enough that I'm eager to get it merged sooner than later. The other changes will be more extensive, so this will reduce the amount of noise in the pull requests as well.

Also, I finally grokked Bats enough to understand why processingBATS_PREVIOUS_STACK_TRACE is unnecessary. I've removed that processing everywhere, and added a thorough comment to restore_bats_shell_options.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.02%) to 95.297% when pulling 629d5cd3f49c0b0c2e0254a29a106ede6fef3e60 on bats-function into 8b82085498b1e35694cf978a0c9952515dd88b54 on master.