mbland / go-script-bash

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

testing/log: Use lib/bats/helper-function #160

Closed mbland closed 7 years ago

mbland commented 7 years ago

Applying the lib/bats/helper-function functions throughout makes the log and log assertion tests substantially faster. On my MacBook Pro before the change:

  ./go test testing/log/assertions log

  92 tests, 0 failures, 2 skipped

  real    1m22.348s
  user    0m36.324s
  sys     0m42.763s

and after the change:

  92 tests, 0 failures, 2 skipped

  real    0m34.204s
  user    0m17.075s
  sys     0m15.461s
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.01%) to 95.308% when pulling 609f05614d0db5abbee809f84c03f37f6e2926bf on bats-function into 0391bc92a551aa0bf6e16b2432c2fab74964b906 on master.