Spike Grobstein
93d6a43dae
added decho function for debugging output
...
if DEBUG is defined, then when decho is called, it will output the given
string to the console, prefixed with '# DEBUG: '
This allows easier debugging of tests but still will conditionally
output said output.
2013-08-31 10:08:59 -04:00
Sam Stephenson
bc72b85871
Print test file path and line number after a failing test
2013-05-23 12:47:17 -05:00
Adam Jacob
9c8425d005
Supporting DOS line endings in BATS tests
2013-05-22 21:20:39 -04:00
Mislav Marohnić
7cec3d6259
fix preprocessing tests that have lines beginning with -e
2013-04-06 14:01:03 +02:00
Sam Stephenson
04be7dc717
Abort when load is invoked with a nonexistent script
2012-11-16 14:35:48 -06:00
Sam Stephenson
a75495b9dd
.gitkeep the empty suite fixture
2012-11-16 14:29:58 -06:00
Sam Stephenson
19a05cc77d
Suite support for aggregating multiple tests under a single run
2012-11-16 14:25:45 -06:00
Sam Stephenson
6b965e18c4
bats -c filename
prints the number of tests in the file
2012-04-08 23:25:38 -05:00
Sam Stephenson
d591867b35
Add -v/--version
2011-12-30 14:12:15 -06:00
Sam Stephenson
e9d3143fdb
Capture stdout/stderr during tests and display it for failures
2011-12-28 23:50:49 -06:00
Sam Stephenson
a4c16fecef
Test load
2011-12-28 21:41:23 -06:00
Sam Stephenson
43d1972b0e
Test (and fix) that teardown runs once after each test
2011-12-28 21:20:43 -06:00
Sam Stephenson
6e65ef449b
Share $TMP with fixtures
2011-12-28 20:58:16 -06:00
Sam Stephenson
aecc6b55dc
Test that setup runs once before each test
2011-12-28 20:46:24 -06:00
Sam Stephenson
098d993eb4
Test that each test's environment is isolated
2011-12-28 20:23:52 -06:00
Sam Stephenson
2e52aeff5d
Test failing and passing in the same file
2011-12-28 20:06:05 -06:00
Sam Stephenson
ac64e0b18a
Test for failing tests
2011-12-28 19:14:10 -06:00
Sam Stephenson
974dbf6a7c
[[ isn't a simple command and thus isn't subject to set -e
2011-12-28 18:44:40 -06:00
Sam Stephenson
911367e6d5
Add $lines array
2011-12-28 17:12:37 -06:00
Sam Stephenson
4a71d77813
Shorten test names
2011-12-28 17:12:17 -06:00
Sam Stephenson
b9cfa7470c
Initial tests
2011-12-28 16:21:48 -06:00