mbland / go-script-bash

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

Multiple small test optimizations based on `lib/bats/helper-function` #162

Closed mbland closed 7 years ago

mbland commented 7 years ago

Part of #156. At this point, the timing for ./go test under Bash 3.2.57(1)-release on my MacBook Pro with a 2.9GHz Intel Core i5 CPU and 8GB 1867MHz DDR3 RAM went from the following for the merge commit for #161:

  784 tests, 0 failures, 2 skipped

  real    4m16.466s
  user    2m1.907s
  sys     2m2.015s

to:

  real    3m2.408s
  user    1m31.395s
  sys     1m21.114s
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.06%) to 95.374% when pulling 65484ad1ba8cbe9bdda5f8fb9d93959f6aca73a9 on bats-function into 17ff46d4ff51e778f71c28985594be8565d5afa7 on master.