Something went wrong on our end
-
Peter Thedens authoredPeter Thedens authored
Unity_notes.md 902 B
Unity Notes
- When using Unity, be sure to define
UNITY_INCLUDE_CONFIG_H
to use theunity_config.h
. - Follow the examples in the
Unity/examples
for a guide, as well as the documentation inUnity/docs
- The Unity Getting Started guide and the [Unity Assertions Cheat Sheet Suitable for Printing and Possibly Framing] (/Unity/doc/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf) are nice references
- Generally, the format is to start
main()
withUNITY_BEGIN()
, followed by calls toRUN_TEST(test_function)
wheretest_function
is a test to run, ended withreturn UNITY_END()