TypedDevs / bashunit

A simple testing library for bash scripts. Test your bash scripts in the fastest and simplest way, discover the most modern bash testing library.
https://bashunit.typeddevs.com
MIT License
316 stars 27 forks source link

Support Bash "strict mode" (and fix one unit test) #239

Closed djpohly closed 9 months ago

djpohly commented 9 months ago

📚 Description

Some script authors like to use "unofficial Bash strict mode", enough so that supporting it shows up in comparisons of shell testing frameworks.

Case in point: enabling the -u option uncovered a bug in test_unsuccessful_assert_is_directory_not_writable that is fixed in this PR.

🔖 Changes

✅ To-do list

watermelon-copilot-for-code-review[bot] commented 9 months ago

Watermelon AI Summary

AI Summary deactivated by djpohly

GitHub PRs

Chemaclass commented 9 months ago

It seems that it is not working as expected for macos... I will check it out when I find some time these days

Chemaclass commented 9 months ago

I will merge this branch into an internal one with the same name strictmode, so I can check it out and play around to reproduce the bug easier, while keeping the original commits from @djpohly 👍🏼