Bash Automated Testing System
Bats 1.6.0
Released: 2022-02-24
--code-quote-style
(and $BATS_CODE_QUOTE_STYLE
) to customize
quotes around code blocks in error output (#506)bats_load_library
for loading libraries from the search path
$BATS_LIB_PATH
(#548)/tmp/latch
in selftest suite
(single use latch) (#516)teardown_file
as <failure>
in junit output (#532)Bats 1.5.0
Released: 2021-10-22
Added:
--verbose-run
: Make run
print $output
by default-x
, --trace
: Print test commands as they are executed (like set -x
)`--show-output-of-passing-tests
: Print output of passing tests--print-output-on-failure
: Automatically print the value of $output
on
failed tests--gather-test-outputs-in <directory>
: Gather the output of failing and
passing tests as files in directoryrun
via !
/-<N>
(#367, #507)install.sh
and uninstall.sh
take an optional second parameter for the lib
folder name to allow for multilib install, e.g. into lib64 (#452)run
flag --keep-empty-lines
to retain empty lines in ${lines[@]}
(#224,
a894fbfa)run
flag --separate-stderr
which also fills $stderr
and
$stderr_lines
(#47, 5c9b173d, #507)Fixed:
run
's $output
when splitting into ${lines[@]}
(#151, #152, #158, #156, #281, #289)set -u
test and fixed some unset variable accesses (#498, #501)Bats 1.4.1
Released: 2021-07-24
Added:
Fixed:
Bats 1.4.0
Released: 2021-07-23
Added:
$BATS_TMPDIR
(#410)/tmp/bats-run-22908-NP0f9h/bats.23102.src
)
with original filename in stdout/err (but not FD3!) (#429)Fixed:
bats_tap_stream_unknown: command not found
with pretty formatter, when
writing non compliant extended output (#412)$BATS_RUN_TMPDIR
with --no-tempdir-cleanup
and docker
by using mktemp
additionally to PID (#409)rm semaphores/slot-: No such file or directory
in parallel mode on MacOS
(#434, #433)...
instead of ---
to start
a block (#442)/code
exists in docker container, to make examples work again (#440)Bats 1.3.0
Released: 2021-03-08
BATS_FILE_EXTENSION
when searching for test
files in a directory (#376)run
(#343)load
(#332)--report-formatter
and (stdout) --formatter
(#345)
--formatter junit
.
stdout will now show unified xml instead of TAP. From now on, please use
--report-formatter junit
to obtain the .xml
report file!--parallel-preserve-environment
flag, as this is the default
behavior (#324)--no-tempdir-cleanup
is
specified (#395)set -u
(#392)$PATH
in test files (#387)BATS_TEST_NUMBER
count per file again (#326)lib/
in npm package (#352)--formatter junit
(#334)setup_file
variables (#333)Released: 2020-07-06
Added:
load
function now reads from absolute and relative paths, and $PATH (#282)bats-file
fork contributed to bats-core/bats-file
(#276)Changed:
ncurses
to Dockerfile, override with --tap
(#239)Released: 2020-04-25
Added:
-f, --filter
flag to run only the tests matching a regular expression (#126)--jobs n
flag to support parallel execution of tests with GNU parallel (#172)Changed:
Released: 2018-07-08
This is the first release with new features relative to the original Bats 0.4.0.
Added:
-r, --recursive
flag to scan directory arguments recursively for *.bats
files (#109)contrib/rpm/bats.spec
file to build RPMs (#111)Changed:
echo
with printf
(#120)Fixed:
BATS_ERROR_STATUS
getting lost when bats_error_trap
fired multiple times under Bash 4.2.x (#110)bin/bats
symlink resolution, handling the case on CentOS where /bin
is a symlink to /usr/bin
(#113, #115)Released: June 18, 2018
skip
messages containing parentheses
were truncated (#48)libexec/
files to libexec/bats-core/
, improved install.sh
(#105)Released: June 9, 2018
Fixed a BATS_CWD
bug introduced in #91 whereby it was set to the parent of PWD
, when it should've been set to PWD
itself (#98). This caused file names in stack traces to contain the basename of PWD
as a prefix, when the names should've been purely relative to PWD
.
Ensure the last line of test output prints when it doesn't end with a newline (#99). This was a quasi-bug introduced by replacing sed
with while
in #88.