Commit Graph

  • a3d81dfa41 Add tests for printing numbers using a compile time replacement spy If Unity core is compiled with UNITY_OUTPUT_CHAR = putcharSpy, these tests will run, otherwise they are ignored and print a message Includes an implementation of putcharSpy, which allows checking the I/O from Unity during a test. Follows closely from the Fixture spy Tricky macros determine if putcharSpy is injected jsalling 2015-12-20 15:56:15 -0600
  • caa3f6663d Add Makefile to fixture/test to make building tests easier No rake and ruby required to build existing tests jsalling 2015-12-18 17:48:35 -0600
  • 8f97ecb84b Merge 725fbe6d21 into e8662ae1cc Danny McClanahan 2015-12-18 05:10:07 +0000
  • 725fbe6d21 Merge branch 'master' of github.com:ThrowTheSwitch/Unity Danny McClanahan 2015-12-17 22:58:51 -0600
  • 3a2ca16b20 move changes to Unity struct Danny McClanahan 2015-12-17 22:21:52 -0600
  • 9779cd480e update with preferred formatting for fixtures Danny McClanahan 2015-12-17 19:22:08 -0600
  • c629e120e1 Fix Leak Detection always passing, but printing a fail message Don't set CurrentTestFailed = 0 at end, move before last check These tests now fail if the output_Spy is not used instead of putchar() jsalling 2015-12-16 17:21:09 -0600
  • 81cf5eb626 Do not add EOL after every ignored test using Unity Fixture Revert part of commit 77af37ad, code looked like a temporary change The behavior is back to the original, printing "....!..." in quiet mode Added an ignored test to Fixture for visual inspection jsalling 2015-12-15 17:32:55 -0600
  • 1703bd1a5e Reduce stack usage by removing unnecessary call from group runner in Fixture Defining a group_runner which calls group_runner_runAll() is redundant jsalling 2015-12-14 17:04:17 -0600
  • f75f489b6e Get rid of magic numbers and strlen call for 'end' string in Fixture Using sizeof() instead of constant 4, makes code less fragile to change Change name of 'guard' in Guard struct to 'guard_space' jsalling 2015-12-14 16:40:07 -0600
  • e966a079a4 Fix printing of largest negative number, MIN 64-bits, -9223372036854775808 'divisor' ranges from 1 to 1e18, representable by a long or unsigned long 'number' becomes negative when cast as signed, so remove the cast and keep conversion warnings quiet by turning 'divisor' unsigned jsalling 2015-12-14 15:15:09 -0600
  • e8662ae1cc - Get these pointers all straightened out! Allow us to override them Mark VanderVoord 2015-12-10 21:47:03 -0500
  • 86b0d628fd - Applied details to FAIL messages as well Mark VanderVoord 2015-12-10 18:42:45 -0500
  • 28195baaba - Made some tweaks to the way the new detail handling works (to make it look nicer, mostly) - Fixed a big ugly error in the fancy RUN_TEST handler Mark VanderVoord 2015-12-10 18:12:45 -0500
  • dfbf21c2a3 - Added ability to tack on details to a Unity failure message. Mark VanderVoord 2015-12-10 13:06:41 -0500
  • 9aeaee26c9 - Cleaned up UnitPointer_Set (thanks Eric) - Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME! Mark VanderVoord 2015-12-07 21:41:44 -0500
  • 90813a3e78 ignore more stuff we don't care about Mark VanderVoord 2015-12-03 16:01:39 -0500
  • 535fe43c2a Merge pull request #146 from jsalling/unity-eol Mark VanderVoord 2015-11-24 06:43:27 -0500
  • de7cf8335e Transform plain macro into a function macro, UNITY_PRINT_EOL() This helps clarity and is more obvious, it looks like a print function jsalling 2015-11-23 21:03:46 -0600
  • d4353166d2 Replace all hard-coded '\n' with UNITY_PRINT_EOL macro in fixture Delete the { ;} braces and semicolon from UNITY_PRINT_EOL to give it expected behavior: 1) requires a semicolon 2) works in one-liner if-else statements If you need "\r\n" for EOL, define as the following to get the same behavior: do{UNITY_OUTPUT_CHAR('\r'); UNITY_OUTPUT_CHAR('\n');}while(0) jsalling 2015-11-23 17:09:30 -0600
  • 5fc2b092d3 Move UNITY_PRINT_EOL to internals to allow access to it. Unity fixture needs access to this macro to be consistent. Add #ifndef wrapper for easier redefinition on systems that use "\r\n". jsalling 2015-11-23 14:21:43 -0600
  • c6dc96f387 We're going to use the C99 isinf() and isnan() macros wherever possible now. If your compiler doesn't support this, define UNITY_EXCLUDE_MATH_H and it will go back to the old method Mark VanderVoord 2015-11-13 09:16:42 -0500
  • e4a99b5f96 Merge pull request #141 from adiorion/cpp-fixes Mark VanderVoord 2015-11-13 08:15:03 -0500
  • 16e535c9f8 Merge pull request #142 from paul-wilkinson/docs-typo Mark VanderVoord 2015-11-10 12:05:41 -0500
  • 1c080665aa docs: fix some typos Paul Wilkinson 2015-11-09 19:53:06 +0000
  • f7599a689e add period and newline for non-verbose success Danny McClanahan 2015-11-02 13:44:13 -0600
  • d4b83f180b define setUp and tearDown under UNITY_WEAK_PRAGMA Andy Isaacson 2015-10-28 18:02:45 -0700
  • 0c9fc9bb33 add prototypes for setUp and tearDown to unity.h Andy Isaacson 2015-10-27 18:18:52 -0700
  • bc8533836b add C++ guards in unity.h Andy Isaacson 2015-10-27 17:24:55 -0700
  • 35ab8e68c7 Revert "add period for non-verbose success as before" Danny McClanahan 2015-10-23 11:39:39 -0500
  • 5bba04bfe7 add period for non-verbose success as before Danny McClanahan 2015-10-23 11:35:06 -0500
  • af5584af01 reformat fixture output Danny McClanahan 2015-10-22 16:42:22 -0500
  • 490ef73630 Revert "add newline before filename on error" Danny McClanahan 2015-10-22 14:20:20 -0500
  • 0bc4a44b0e add newline before filename on error Danny McClanahan 2015-10-22 12:46:12 -0500
  • e896830484 Merge pull request #139 from jeremyhannon/master Mark VanderVoord 2015-10-15 06:29:11 -0400
  • 1273112a05 MISRA rule 19.10: parentheses around macro params Jeremy Hannon 2015-10-14 17:19:26 -0500
  • 558c601b73 Merge 2a0e1cd779 into 6621bc81c4 jwalkerbg60 2015-10-06 22:17:51 +0000
  • 6621bc81c4 Merge pull request #136 from algernon/h/fixture/unity_free-NULL-safety Mark VanderVoord 2015-10-06 06:50:52 -0400
  • 1affe544d2
    unity_fixture: Make unity_free() NULL-safe Gergely Nagy 2015-10-06 10:44:44 +0200
  • 7f9f937cd1 Merge pull request #134 from mjago/master Mark VanderVoord 2015-09-18 07:02:34 -0400
  • 70d6cb5780 Fix custom message for 64bit WITHIN_MESSAGE macros Martyn Jago 2015-09-18 11:54:09 +0100
  • bcf15fa6f2 Merge d3cff25c40 into bc307bd600 leftbyte 2015-09-11 05:27:46 +0000
  • d3cff25c40 newline Dan Phung 2015-09-10 22:27:04 -0700
  • 18cab5d4ad add ability to test actual thrown asserts. Dan Phung 2015-09-09 10:50:19 -0700
  • ba41b04536 Change cast of UNITY_PTR_ATTRIBUTEs from (void *) to (unsigned char *). Dan Phung 2015-08-28 16:01:53 -0700
  • bc307bd600 properly slash paths passed to UnityBegin in test runner generator Mark VanderVoord 2015-08-18 08:27:15 -0400
  • 98e8590fce Use correct macro for unity_fixture's FAIL. Output used headers from test runner generator Mark VanderVoord 2015-08-18 08:03:50 -0400
  • f97e03d063 Merge pull request #128 from XelaRellum/fix_for_compiler_warning_signed_unsigned Mark VanderVoord 2015-08-03 10:13:43 -0400
  • e3c86b659c Fixes compiler warning about comparison of signed/unsigned Alexander Mueller 2015-08-03 10:48:17 +0200
  • 7ff000f29f Merge pull request #126 from tabascoeye/patch-1 Mark VanderVoord 2015-07-28 17:20:17 -0400
  • f72ca64b52 "usage" output to show .py ext instead of .rb ¯\_(ツ)_/¯ 2015-07-27 14:24:55 +0200
  • a7b85335be the test runner generator now has the ability to also output a header file for the tests, which can get pulled into the test itself if desired. Mark VanderVoord 2015-07-21 15:35:33 -0400
  • ab7e322a04 protect against capturing both declaration and definitions and therefore creating a runner which runs that test twice. Mark VanderVoord 2015-07-21 09:37:26 -0400
  • 16a7d30d5e INTPTR_MAX is defined as nothing on some targets (looking at you HP-UX) and therefore these lines would crash. Adding 0 to the check makes these lines always run. Mark VanderVoord 2015-07-21 08:38:48 -0400
  • e47ac34c82 Fix default path in unity test summarizer Mark VanderVoord 2015-07-21 08:29:56 -0400
  • ba87d27b77 - switch to old-school hash notation to be backwards compatible with older versions of ruby Mark VanderVoord 2015-07-21 07:35:29 -0400
  • a1596c9497 Merge pull request #125 from trianglee/missing_string_assert Mark VanderVoord 2015-07-15 10:24:28 -0400
  • 8c56cf4c67 Merge pull request #124 from trianglee/missing_unity_ptr_attribute Mark VanderVoord 2015-07-15 10:23:54 -0400
  • f4292f6df5 Added back TEST_ASSERT_EQUAL_STRING_MESSAGE() which was (accidentally?) removed some time ago. Nimrod Zimerman 2015-07-15 12:00:56 +0300
  • 4c9e06e356 Use UNITY_PTR_ATTRIBUTE() in one place where it was (accidentally?) not used. Nimrod Zimerman 2015-07-15 11:52:29 +0300
  • 6f119a8ebd Merge pull request #122 from trianglee/get_tests_counts Mark VanderVoord 2015-07-14 16:45:55 -0400
  • c7b0d3e80d Merge pull request #123 from trianglee/ignored_tests_counted Mark VanderVoord 2015-07-14 15:27:48 -0400
  • 12f5a08eb3 Merge 1ca9f99f18 into 6a944c2eb9 trianglee 2015-07-14 17:35:26 +0000
  • 1ca9f99f18 On assert, print the file name where the assert happened. Nimrod Zimerman 2015-07-14 17:57:44 +0300
  • 8a5e7cce24 Added ability to get number of ignored tests and total number of tests. Nimrod Zimerman 2015-07-14 17:54:11 +0300
  • 9e9adc050c Bug fix - ignored tests were incorrectly counted when not selected for running. Nimrod Zimerman 2015-01-13 22:48:36 +0200
  • 6a944c2eb9 Merge pull request #120 from aburks/master Mark VanderVoord 2015-07-12 10:18:43 -0400
  • 22b05ad537 Fixes #118: unity_output_Spy should use the platform-agnostic macros for memory. Andrew Burks 2015-07-01 11:17:09 -0700
  • 11baa8d1e6 Merge 056702b851 into 254ba80543 aburks 2015-07-01 17:58:35 +0000
  • 056702b851 Fixes #118: unity_output_Spy should use the platform-agnostic macros for memory and printing. Andrew Burks 2015-07-01 10:57:08 -0700
  • 254ba80543 Merge pull request #117 from aburks/master Mark VanderVoord 2015-06-30 22:48:42 -0400
  • 7737fee444 Fixes #116: Allow overrides of the Unity Fixture's memory functions. This enables custom heap implementations to be used with the Unity Fixture. Andrew Burks 2015-06-30 15:32:57 -0700
  • 31b1255663 Fixes #3: unity_fixture tests don't build. unity.c and unity_fixture_malloc_overrides.h neglected to include <stddef.h> even though the reference 'size_t' and 'NULL'. Andrew Burks 2015-06-30 15:24:39 -0700
  • e40530d59f Merge pull request #112 from ThrowTheSwitch/bugfix/ptr_cast Mark VanderVoord 2015-06-20 09:55:40 -0400
  • 9b4c5b76d9 Fixed missed prototype Mark VanderVoord 2015-06-19 21:18:34 -0400
  • bc9e12ea1a - Trying a very verbose method of incrementing the pointers - casting to a (void*) was giving warnings to some compilers about double casting - casting from a u8 to u16/32/64 was giving warnings about changing alignment requirements Mark VanderVoord 2015-06-19 15:16:10 -0400
  • 08ffed33d4 Merge pull request #108 from eivindt/test-equal-string-len Mark VanderVoord 2015-06-19 13:38:10 -0400
  • c3d95e7b0d Merge pull request #109 from laborer2008/master Mark VanderVoord 2015-06-19 13:29:25 -0400
  • 7272480c1b Allow summarizer to search through subdirectories for results files Mark VanderVoord 2015-06-19 11:48:48 -0400
  • 77af37add0 - catch optional fixtures plugin up to mainline unity (somewhat. like fixing line endings) ThingamaByte, LLC 2015-06-18 17:16:01 -0400
  • 06c95fcb08 - Fixed broken examples ThingamaByte, LLC 2015-06-18 10:38:20 -0400
  • 8b8d14d9ac Merge 8aef1ae86c into b922d622a6 Eirik Midttun 2015-06-05 11:45:52 +0000
  • 8aef1ae86c Fix to prevent warning using armcc: Warning: #61-D: integer operation result is out of range. Eirik Midttun 2015-06-05 13:42:42 +0200
  • 59aed00679 Reverting of redundant casting from 89b003ed0b Double castings look ugly. And if Unity is compiled with -Wcast-qual flag these type castings produce a lot of warnings: unity/src/unity.c:490:80: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] UnityPrintNumberByStyle(*(UNITY_PTR_ATTRIBUTE const _US16*)(void*)ptr_exp, style); ^ Sergey Gusarov 2015-05-23 02:21:38 +0300
  • 15b367f8d1 Fixed stupid typo Eivind Tagseth 2015-04-23 21:02:05 +0200
  • 61c0b0b75c Added support for TEST_ASSERT_EQUAL_STRING_LEN* Eivind Tagseth 2015-04-23 15:39:19 +0200
  • b922d622a6 Added break out of system vs local includes for enhanced include-based dependency extraction to aid new cmock Make task/build generation. Bumber build and version info since new external capability added for querying includes. Greg Williams 2015-04-06 10:43:28 -0400
  • 271f299df5 catch-all-else Eivind Tagseth 2015-03-23 13:20:33 +0100
  • 2a0e1cd779 Code cleanup: function UnityPrint made a little bit faster and smaller. Ivan Cenov 2015-03-15 19:35:09 +0200
  • 5053f2ca90 Fixed issue with requiring the new type_sanitizer module in different ways Greg Williams 2015-03-12 12:25:43 -0400
  • 89b003ed0b Removed platform-specific warnings unsupported by GCC Greg Williams 2015-03-12 10:41:54 -0400
  • 7fb81c8e95 Merge branch 'master' of github.com:ThrowTheSwitch/Unity Greg Williams 2015-03-12 10:33:33 -0400
  • a24bd45511 Added type_sanitizer.rb to consolidate converting a string to a valid C identifier, which will allow CMock and Ceedling to use the same construct which is currently duplicated in each repo. Greg Williams 2015-03-12 10:33:23 -0400
  • ba4a3f910b Added assertions counter to @UNITY_TEST_ASSERT@ macro. Ivan Cenov 2015-02-17 09:43:52 +0200
  • 1c17f28f61 Added assertions counter (Corrected test testUnitySizeInitializationReminder) Ivan Cenov 2015-02-16 22:02:19 +0200
  • 2e72611e73 Added assertions counter (added initialization of Unity.NumberOfAssertions in UnityBegin function. Ivan Cenov 2015-02-16 21:45:35 +0200
  • 7b59032c59 Added assertions counter. Ivan Cenov 2015-02-16 21:28:16 +0200
  • 891775de38 Merge pull request #102 from XelaRellum/unity_test_summary_python Mark VanderVoord 2015-02-11 15:53:44 -0500
  • 0f4ea8906b Add a port of unity_test_summary.rb to Python Alexander Mueller 2015-02-11 16:06:03 +0100
  • da086f98aa Output new-line char not only PASSed/IGNOREed but also FAILed under Verbose mode @gageas 2015-02-04 23:27:16 +0900