Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f121674
Adding `assert_equals_golden` and `assert_output_equals_golden`
CauhxMilloy May 8, 2024
71e2c5a
* Fixing incorrect error message output when `assert_equals_golden` f…
CauhxMilloy May 13, 2024
8916f2d
* Fixing a few more comments.
CauhxMilloy May 14, 2024
8d530de
* Adding `assert_file_equals_golden` for easier assertions on files.
CauhxMilloy May 16, 2024
988e355
* Escaping `\` for regexp golden files.
CauhxMilloy May 21, 2024
9501659
* Adding always showing output/golden contents/diff when test fails (…
CauhxMilloy May 28, 2024
357288c
* Checking `BATS_ASSERT_UPDATE_GOLDENS_ON_FAILURE` more consistently;…
CauhxMilloy Aug 24, 2025
1c89b79
* Consolidate update golden logic into helper functions.
CauhxMilloy Aug 24, 2025
0b0f559
* Simplifying some logic and properly putting fail-able calls into `i…
CauhxMilloy Aug 24, 2025
406315d
* Consolidating print logic for common validation (checking arg count…
CauhxMilloy Aug 24, 2025
f39cf15
* Consolidating reading of golden file contents into helper function.
CauhxMilloy Aug 24, 2025
a1e85b6
* Consolidating invalid regexp error message into helper function.
CauhxMilloy Aug 24, 2025
3dc0396
* Properly passing `allow_empty` flag into `_assert_golden_read_golde…
CauhxMilloy Aug 24, 2025
4f40bd3
* Fixing more `return`s.
CauhxMilloy Aug 24, 2025
c1eba2d
* Making helper function names more unique and clear.
CauhxMilloy Aug 24, 2025
4db39f2
* Fixing typo on variable name.
CauhxMilloy Aug 24, 2025
56cfdb5
* Switching from echoing in helper functions to using namerefs.
CauhxMilloy Aug 25, 2025
accd5a3
* Updating assertions in tests to match updated message output.
CauhxMilloy Aug 25, 2025
b7c1b4b
* Fixing pluralization of word in error message.
CauhxMilloy Aug 25, 2025
d8fecf1
* Moving "print_updated_golden_file_msg" call inside respective "upda…
CauhxMilloy Aug 25, 2025
a60ea2a
* Fixing missing param passed for "show_diff" error message.
CauhxMilloy Aug 25, 2025
f1ae552
* Updating logic to not do regex check after failing valid regex check.
CauhxMilloy Aug 26, 2025
ef9a633
* Updating assertion for invalid regex test cases.
CauhxMilloy Aug 26, 2025
06cb412
Merge remote-tracking branch 'remotes/original_origin/main' into asse…
CauhxMilloy Aug 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions load.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ source "$(dirname "${BASH_SOURCE[0]}")/src/assert_line.bash"
source "$(dirname "${BASH_SOURCE[0]}")/src/refute_line.bash"
source "$(dirname "${BASH_SOURCE[0]}")/src/assert_regex.bash"
source "$(dirname "${BASH_SOURCE[0]}")/src/refute_regex.bash"
source "$(dirname "${BASH_SOURCE[0]}")/src/assert_equals_golden.bash"
Loading