- bats-core:
- pre-bats-core:
- TAP:
mkdir bats
cd bats
git init
git submodule init
git submodule add https://github.com/bats-core/bats-core test/libs/bats
git submodule add https://github.com/ztombol/bats-assert test/libs/bats-assert
git submodule add https://github.com/ztombol/bats-support test/libs/bats-support
git add .
git commit -m 'installed bats'
$ tree -L 2
.
├── greeter.sh
├── README.md
└── test
├── greeter.bats
├── test-helper.sh
└── libs
2 directories, 4 files
$ ./test/libs/bats/bin/bats -t test/greeter.bats
1..2
# [LOG] testing a debug log from the solution code
not ok 1 with name provided
# (from function `assert_output' in file test/libs/bats-assert/src/assert.bash, line 239,
# in test file test/greeter.bats, line 24)
# `assert_output "Hello, John!"' failed
#
# -- output differs --
# expected : Hello, John!
# actual : Hello, john!
# --
#
# [LOG] testing a debug log from the solution code
# [LOG] testing log from within a test case
ok 2 without name provided