TestProductionCode2_Runner.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* AUTOGENERATED FILE. DO NOT EDIT. */
  2. /*=======Test Runner Used To Run Each Test Below=====*/
  3. #define RUN_TEST(TestFunc, TestLineNum) \
  4. { \
  5. Unity.CurrentTestName = #TestFunc; \
  6. Unity.CurrentTestLineNumber = TestLineNum; \
  7. Unity.NumberOfTests++; \
  8. if (TEST_PROTECT()) \
  9. { \
  10. setUp(); \
  11. TestFunc(); \
  12. } \
  13. if (TEST_PROTECT()) \
  14. { \
  15. tearDown(); \
  16. } \
  17. UnityConcludeTest(); \
  18. }
  19. /*=======Automagically Detected Files To Include=====*/
  20. #include "unity.h"
  21. #include <setjmp.h>
  22. #include <stdio.h>
  23. #include "ProductionCode2.h"
  24. /*=======External Functions This Runner Calls=====*/
  25. extern void setUp(void);
  26. extern void tearDown(void);
  27. extern void test_IgnoredTest(void);
  28. extern void test_AnotherIgnoredTest(void);
  29. extern void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void);
  30. /*=======Test Reset Option=====*/
  31. void resetTest(void);
  32. void resetTest(void)
  33. {
  34. tearDown();
  35. setUp();
  36. }
  37. /*=======MAIN=====*/
  38. int main(void)
  39. {
  40. UnityBegin("test/TestProductionCode2.c");
  41. RUN_TEST(test_IgnoredTest, 18);
  42. RUN_TEST(test_AnotherIgnoredTest, 23);
  43. RUN_TEST(test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented, 28);
  44. return (UnityEnd());
  45. }