Brat, a parallel TAP testing harness for the POSIX shell

25 points by sstephenson


zmitchell

We use bats extensively at work for testing a CLI and I’ve noticed that there’s a significant overhead to running any test because of all of the file scanning, forking, execing that it does prior to even running tests. Do you have any performance comparisons on that front e.g. startup time?

The other thing that’s bitten us multiple times is how bats creates fd 3 for diagnostic output that isn’t captured. If you spawn a background program that accidentally inherits fd 3, bats will hang forever because it waits for fd 3 to close before exiting.