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

chore: add fail() function #249

Closed ceejatec closed 5 months ago

ceejatec commented 5 months ago

📚 Description

Adds new fail() function for general purpose test failures not covered by the various assert_* functions.

🔖 Changes

✅ To-do list

ceejatec commented 5 months ago

@Chemaclass Indeed, it's a pretty common function, going right back to JUnit. IME, frequently the various assert() methods are internally implemented in terms of the basic fail(message) function too.