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
271 stars 21 forks source link

Syntax error does not fail the test but stops the runner #220

Open Chemaclass opened 8 months ago

Chemaclass commented 8 months ago

Summary

Avoid silent errors. Aim to fail fast and loud.

Current behavior

When encountering a syntax within a test, it should endup with a failure instead of a silence stop. See the macos tests in this CI:

Screenshot 2023-11-09 at 12 05 57

How to reproduce

See the current behaviour above, and see the example here from this fix PR so the previous code will reproduce it.

Expected behavior

A syntax error will endup in a failing test.