Open MisanthropicBit opened 8 years ago
As a propose for a potential solution ... When each test is finally a temporary bash script in /tmp you could use this: http://bashdb.sourceforge.net/ as tool. You could provide an option --debug to use it
Thanks for the proposal. Just to be clear: Do you mean to run bashdb
with the --debug
option on the temporary files created by bats?
Exactly
Thanks! I'll try it out and see if it will also work on Travis CI 👍
First of all, thanks for a great bash testing tool! 👍
Almost all of my tests rely on variables that are only expanded when the script is run as an interactive shell, however this does not seem to be possible in bats atm.
Is there any way to make bats run tests interactively or is there some other workaround?
Bash and bats versions are:
As an aside, most test frameworks I've used in the past tend to color passing tests in green and possibly skipped tests in yellow. Since bats already colors failing tests in red, I was wondering is this is simply an aesthetic choice or due to something else?