Release 0.15
🐛 Bug fixes
- Fix double / when running script #297
- Fix filter matching pattern with and without test prefix #302
- Fix wrong commit id when installing beta #316
🏗️ New features
Add assertions to log file in #298
- Docs: Command line: Logging
./bashunit -l|--log-junit <log.xml>
Prefix all .env config keys with BASHUNIT_ #307
bash
BASHUNIT_DEFAULT_PATH=
BASHUNIT_SHOW_HEADER=
BASHUNIT_HEADER_ASCII_ART=
BASHUNIT_SIMPLE_OUTPUT=
BASHUNIT_STOP_ON_FAILURE=
BASHUNIT_SHOW_EXECUTION_TIME=
BASHUNIT_LOG_JUNIT=
BASHUNIT_REPORT_HTML=
Data providers support multiple arguments #311
- Remove multi-invokers in favor of data providers
- Docs: Data providers
Multiple args in multiple calls
bash
# data_provider provider_directories
function test_directory_exists() {
local outro=$1
local directory=$2
assert_equals "outro" "$outro"
assert_directory_exists "$directory"
}
function provider_directories() {
echo "outro" "/usr"
echo "outro" "/etc"
echo "outro" "/var"
}
Running example_test.sh
✓ Passed: Directory exists (outro /usr)
✓ Passed: Directory exists (outro /etc)
✓ Passed: Directory exists (outro /var)
Add assert_same and improve assert_equals #313
- assert_same: Compare the expected and actual values including special chars.
- assert_equals: Similar as
same
but ignoring all special chars like colors, tabs and new lines.
Display total tests upfront #317
Other features:
- Use -v for version and -vvv for verbose #314
🌾 Miscellaneous
- Align the "Expected" with "but got" failure message #312
- Remove deprecated uppercase methods on state_test file #303
See the full changelog in GitHub