bashunit
bashunit copied to clipboard
Test your bash scripts in the fastest and simplest way, discover the most modern bash testing framework.
while looking at https://github.com/TypedDevs/bashunit/pull/279 I got the idea that bashunit could benefit from a github action log format. this means errors can show up in the "Files Changed"-tab of a...
| Q | A | |------------------|-------------------------| | OS | macOS / Linux / Windows | | Shell | bash | | bashunit version | 0.12.0 | #### Summary Discovered: https://github.com/TypedDevs/bashunit/pull/266#issuecomment-2176591645...
When you use providers, the name of the test is printed next to the data used as argument of the provider. For example:  >...
## 🔖 Changes - Improved `temp_file` and `temp_dir` - Call `cleanup_temp_files` at the end of bashunit > `main::exec()` - Use `temp_file` instead of `mktemp` for better cleanup ## ✅ To-do...
## 🔖 Changes This is a WIP experiment. I am still not sure how do I want to display the progress of the running testsuite. It might be with a...
## 📚 Description Closes: https://github.com/TypedDevs/bashunit/issues/339 ## 🔖 Changes - WIP ## ✅ To-do list - [ ] I updated the `CHANGELOG.md` to reflect the new feature or fix - [...
Related: https://github.com/TypedDevs/bashunit/pull/336#issuecomment-2379006750 Enable running an additional assertion over the generated output from `assert_exit_code` ([docs](https://bashunit.typeddevs.com/assertions#assert-exit-code)). ### Example 1 ```bash bashunit -a exit_code "1" "the_command" -a contains "some error" ``` Would be...
| Q | A | |------------------|-------------------------| | OS | Ubuntu 20.04.4 LTS | | Shell | bash | | bashunit version | 0.14.0 | #### Summary Using data provider to...
| Q | A | |------------------|-------------------------| | OS | macOS vs. Linux | | Shell | sh / bash / ... | | bashunit version | 0.15.0 | #### Summary...
Hi, I have this and it doesnt work. Is this supported? ```sh mock create_remote_time_entries "echo 'Date range: 2025-03-29 to 2025-03-29'" result="$(run)" assert_have_been_called_with 'create_remote_time_entries' '2023-10-01' ```