mbland / go-script-bash

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

Update to Bats 1.1.0 #246

Open nkakouros opened 6 years ago

nkakouros commented 6 years ago

Due diligence

Framework, Bash, and operating system version information

_GO_CORE_VERSION:         v1.7.0
BASH_VERSION:             4.4.23(1)-release
OSTYPE:                   linux-gnu
_GO_PLATFORM_ID:          arch
_GO_PLATFORM_VERSION_ID:  

Description

The BATS_CURRENT_STACK_TRACE from older versions of Bats is used in lib/bats/helper-function and lib/bats/assertion-test-helpers. As it is not defined any more in Bats, the logic of those functions is broken.

I think these breaks are another reason to have these assertions/helper function or others incorporated into bats-core as per https://github.com/bats-core/bats-core/issues/44.