ThrowTheSwitch / Unity

Simple Unit Testing for C
ThrowTheSwitch.org
MIT License
4.02k stars 969 forks source link

Allow user-defined TEST_PROTECT & TEST_ABORT macros #695

Closed fkjagodzinski closed 1 year ago

fkjagodzinski commented 1 year ago

This update covers use cases where:

Enable project-specific customisation of TEST_PROTECT and TEST_ABORT macros:

fkjagodzinski commented 1 year ago

Marking this as a draft because the patch is missing docs update. :slightly_smiling_face:

Also, please let me know if this path is acceptable, then I'll update the relevant markdown files.

mvandervoord commented 1 year ago

Hi. Thanks for the patch! I appreciate that you've matched the pattern of usage we have for other override-able options in the project. If you update the configuration docs with this, I'd say you have a great feature here. :)

fkjagodzinski commented 1 year ago

I've updated the docs. I think the macro descriptions are OK, but my view is rather biased, so I'd appreciate any reviews. :wink:

fkjagodzinski commented 1 year ago

Hi there. It's been a while so I took another look at the docs, and I'd say both the macro descriptions and the code snippets still make sense. @mvandervoord, could you review the PR when you get a chance?