Commit Graph

  • 028ca953d7 Finish checking for equal floats in Arrays functions Refactor to use the same code everywhere for FloatWithin check Rename and fix a few tests for new behavior, infinity == infinity jsalling 2016-08-27 15:12:45 -05:00
  • a74920d112 Merge pull request #210 from jsalling/feature/int-detection Mark VanderVoord 2016-08-26 15:03:44 -04:00
  • 268c5b7e0b Make testunity.c printing uniform during failure, delete word "Previous" jsalling 2016-04-27 23:40:47 -05:00
  • 113f2fc32a Add line numbers to Unity test Runner generated by awk script jsalling 2016-04-27 23:38:43 -05:00
  • 28c94bd403 Remove references to UNITY_EXCLUDE_SIZEOF, rework config header jsalling 2016-08-25 08:48:29 -05:00
  • 9aa4c7f1aa Clean up Makefile, move -Wredundant-decls to test build CC always exists inside make so ?= doesn't assign to it jsalling 2016-08-24 20:04:14 -05:00
  • e4e2210eb6 Improving integer width detection The C preprocessor cannot use sizeof in #if etc. jsalling 2016-05-03 22:20:34 -05:00
  • 8beb9715be C89 comment style changes only jsalling 2016-08-23 23:10:05 -05:00
  • 3108aba5c7 If two floats happen to be equal, return right away Covers the cases where infinity == infinity jsalling 2016-08-23 22:36:02 -05:00
  • daad2bc82b removed some newer style comments that crept into the codebase. Mark VanderVoord 2016-08-23 06:46:51 -04:00
  • 75ad84c92f Merge pull request #209 from jsalling/cleanup/fixture-memory-testing Mark VanderVoord 2016-08-21 13:49:55 -04:00
  • 92f6d5dd08 Verify the tests for Internal Malloc implementation free all the heap Make it more clear that each test of the internal heap implementation should free in LIFO order. Without this check, memory can be stranded but still pass. jsalling 2016-08-21 11:53:15 -05:00
  • d837342b15 Move free() calls before test asserts, add comments to ReallocFail test jsalling 2016-08-21 11:45:54 -05:00
  • 03ac71b8c9 Reorder free calls to free all memory The internal malloc must free in LIFO order jsalling 2016-08-21 11:27:47 -05:00
  • f276c79f9b Merge branch 'feature/cmd_line_args' Mark VanderVoord 2016-08-11 13:37:51 -04:00
  • 06bae56d30 Revert "Merge pull request #205 from bryongloden/patch-2" This reverts commit 783fcaea97cf11975d75254742e800d7759fdbd0 The guard memory bytes should never be freed inside unity_malloc() jsalling 2016-08-09 00:51:38 -05:00
  • 783fcaea97 Merge pull request #205 from bryongloden/patch-2 Mark VanderVoord 2016-08-02 14:55:42 -04:00
  • fbc20934e0 Merge pull request #206 from bryongloden/patch-3 Mark VanderVoord 2016-08-02 14:55:00 -04:00
  • 13160e5f1e Update unity_fixture_Test.c Bryon Gloden, CISSP® 2016-07-28 17:11:11 -04:00
  • 4fd5f79f28 Update unity_fixture.c Bryon Gloden, CISSP® 2016-07-26 19:41:30 -04:00
  • 0737b4117f Update unity_fixture.c Bryon Gloden, CISSP® 2016-07-26 16:02:41 -04:00
  • 094c05e904 Update unity_fixture_Test.c Bryon Gloden, CISSP® 2016-07-26 14:40:00 -04:00
  • b1d8388ab8 Update unity_fixture.c Bryon Gloden, CISSP® 2016-07-26 14:19:41 -04:00
  • 57676b5edc - Fixed cases with wildcards in file handling. Mark VanderVoord 2016-07-17 19:11:09 -04:00
  • ad0c07c9ad Merge pull request #204 from dmurdin/tms470 Mark VanderVoord 2016-07-13 06:49:48 -04:00
  • cec38d13d3 Merge pull request #203 from dmurdin/pathslash Mark VanderVoord 2016-07-13 06:48:57 -04:00
  • f1a4a5e652 Weak attribute fix for TMS470 Compilers. Daniel Murdin 2016-07-13 10:36:43 +02:00
  • 44c429bd8b Escape backslashes for windows paths, fixes #137. Daniel Murdin 2016-07-13 10:31:52 +02:00
  • f2f073d533 Fix warnings if you use UNITY_EXCLUDE_FLOAT Joe Kroesche 2016-07-10 20:36:08 -05:00
  • 1cecab30e8 - Added alias for filter -n of -f - Added ability to surround filter strings in either type of quotes - Added ability to filter on multiple test strings as a comma delimited list - Added ability to filter on test_file:test_name - Added ability to use alternate syntax for filter of -f="blah" Mark VanderVoord 2016-07-08 17:35:37 -04:00
  • f05385250c - Document new define in unity.h. Will still need to be added to real docs Mark VanderVoord 2016-07-08 16:10:14 -04:00
  • f205b7de05 - If we declare main before the definition, we make sure the arguments match Mark VanderVoord 2016-07-08 16:05:32 -04:00
  • eba387fa3e - Add tests which prove command line arguments now work with runner. Fixed a few bugs in this area. Mark VanderVoord 2016-06-27 08:41:58 -04:00
  • 96f51e8530 Updated method of testing generate_test_runner script to be a FUNCTIONAL test instead of a perfect code match. Backfilled most tests and added some coverage not previously present. Still need to test new command line args and a few cmock details. Mark VanderVoord 2016-06-22 20:57:11 -04:00
  • 4d3d062b56 Adding command line support. Started with -n (test name matching) -x (test name exclusion). Script verification hasn't been added yet. Mark VanderVoord 2016-06-21 16:07:10 -04:00
  • b3bc196ab3 making new flush routines work under all defined conditions. Mark VanderVoord 2016-06-21 10:01:34 -04:00
  • c19b5e20a0 Merge pull request #198 from Liebherr-Nenzing/master Mark VanderVoord 2016-06-21 06:47:29 -04:00
  • 87af5a1675 add unity_to_junit.py Mathias Giacomuzzi 2016-06-21 09:43:26 +02:00
  • 7c3d829070 Protect against files without any test output Mark VanderVoord 2016-05-18 07:31:17 -04:00
  • d86a44b501 Merge pull request #131 from andyhelp/master Mark VanderVoord 2016-05-15 14:03:38 -04:00
  • 83f7d5237b Change example_1 to compile with std=c89 Andrzej Bieniek 2015-09-09 21:13:33 +01:00
  • 61dd3f181b Change comments style in unity and test runner to compile with std=c89 Andrzej Bieniek 2015-09-09 21:09:59 +01:00
  • a5a927f43e Merge pull request #193 from wolf99/AddConfigTemplate Mark VanderVoord 2016-05-12 11:08:10 -04:00
  • d7a371a993 Moved example unity_config.h from src to examples Toby 2016-05-12 16:00:31 +01:00
  • 287bcae478 Add template example unity_config.h file Toby 2016-05-11 12:10:55 +01:00
  • 837c5291fa The class gives back to the community: better documentation produced for the class and now part of the open source project Mark VanderVoord 2016-05-06 11:52:06 -04:00
  • e3612e9a10 Update Fixtures too. Mark VanderVoord 2016-05-06 10:55:41 -04:00
  • c5c392b18a update UNITY_OUTPUT_CHAR to not return a value (because we never check it anyway). add UNITY_OUTPUT_FLUSH to make sure we get the output we need on aborted tests and whatnot. Mark VanderVoord 2016-05-06 10:47:39 -04:00
  • 7053ef7523 Merge pull request #192 from jsalling/feature/unity-coverage Mark VanderVoord 2016-05-04 22:01:13 -04:00
  • c5238adab2 100% code coverage for Unity project Add test for failure count and UnityEnd return value Cover printing escape codes with length parameter Full statement coverage jsalling 2016-05-03 21:58:29 -05:00
  • bff491c73c Test strings not equal to NULL when using length parameter jsalling 2016-05-03 20:47:00 -05:00
  • 7c270e0541 Test that details are printed in a direct TEST_FAIL call jsalling 2016-05-03 20:31:37 -05:00
  • 4164540333 Test number arrays for two NULL inputs, it should pass More statement coverage on NULL input feature jsalling 2016-05-03 20:26:42 -05:00
  • 213e47178c Test string arrays and memory comparison with length 0, it should fail jsalling 2016-05-03 20:17:38 -05:00
  • a6748f39cd Test number arrays comparison with length 0, it should fail Get test coverage on this feature for int, float, & double jsalling 2016-05-03 20:14:30 -05:00
  • 07513dd331 Remove weak linked setup/teardown from coverage build, unreachable & empty Add config flag for 64-bit, max covered lines even with 32-bit compilers Always print uncovered lines, delete separate make target jsalling 2016-05-03 20:02:01 -05:00
  • b971ec921f Simplify printing StrPointless into a single macro, remove repeated code jsalling 2016-05-03 19:52:32 -05:00
  • 67a37a4db7 Refactor UnityPrintNumber(), remove unreachable code Remove what looks like an overflow check. 'divisor' cannot overflow since it is the same type as 'number' and cannot be greater. jsalling 2016-05-02 23:50:28 -05:00
  • 0247e34b1f Merge pull request #190 from jsalling/feature/differentiate-final-ouput Mark VanderVoord 2016-04-27 22:45:13 -04:00
  • 0137f4a8c2 Add option to print FAILED instead of FAIL during the summary For easier automation and searching for a test suite failure jsalling 2016-04-27 21:00:04 -05:00
  • a00e879d3d Merge pull request #189 from rikvdh/master Mark VanderVoord 2016-04-27 06:54:14 -04:00
  • 23271e81a6 also check for isinf Rik van der Heijden 2016-04-27 10:25:11 +02:00
  • 74581c357e use isnan instead of comparing floats, fixes #188 Rik van der Heijden 2016-04-27 10:17:43 +02:00
  • 4f2cdb03fc Merge pull request #185 from jsalling/feature/output-declaration Mark VanderVoord 2016-04-26 22:53:41 -04:00
  • e97c4fb5e5 Merge pull request #186 from xor-gate/strict-cflag-fix-missing-var-decl-clang Mark VanderVoord 2016-04-26 08:48:59 -04:00
  • 6a02f7e51c Fixup issues when compiling with clang -Wmissing-variable-declarations Jerry Jacobs 2016-04-26 14:17:10 +02:00
  • 593a03462e Add an option to omit UNITY_OUTPUT_CHAR declaration from the header This solves the warnings from -Wredundant-decls when overriding the OUTPUT function with a function declared in another header. It's better this is the non-default option, since using it requires either a declaration of the new function OR a preprocessor guard on declaring UNITY_OUTPUT_CHAR (as in unity.c here), in every file using the function. See Pull Request #185 for more. jsalling 2016-04-24 12:28:46 -05:00
  • 573481729b Revert commits 720ea42 and a27b03c which broke the Fixture build These were aimed at preventing the internals header from declaring a prototype for 'int UNITY_OUTPUT_CHAR(int);'. The second part fixed an omitted declaration in the tests caused by the first commit. Will replace the default behavior & add an option for this in next commit jsalling 2016-04-24 12:14:44 -05:00
  • 25a3666e47 Add Unity Fixture to the travisCI build, and use Makefile builds Prevent changes in core Unity from silently breaking Fixture jsalling 2016-04-24 12:07:51 -05:00
  • 5ceab7193f Update Version Mark VanderVoord 2016-04-14 21:22:25 -04:00
  • 1c7e1bd5a2 Merge pull request #183 from xor-gate/master Mark VanderVoord 2016-04-13 07:44:59 -04:00
  • 720ea42a82 tests/testunity.c: Fix after redundant declarations fix Jerry Jacobs 2016-04-13 12:59:31 +02:00
  • a27b03c79a UNITY_OUTPUT_CHAR can emit a redundant declaration, we scope the extern declartion to the unity.c Jerry Jacobs 2016-04-13 12:19:04 +02:00
  • 8c37d7b98a Fix #182, remove redundant function declarations Jerry Jacobs 2016-04-13 11:33:57 +02:00
  • 64d98f240a Merge pull request #177 from jsalling/refactor/unreachable Mark VanderVoord 2016-03-02 17:21:36 -05:00
  • 13c99601a7 Add a value to FLOAT_TRAIT enum to enforce use of default case in switches Revert the previous commit. Add tests for extended enum cases. Fix crash due to accessing 'trait_names' array out of bounds. Adding an extra invalid value to the end of an enum causes '-Wswitch' flag to warn unless there is a switch default case - also enabled by '-Wall'. jsalling 2016-03-01 23:35:55 -06:00
  • 7a0875f4f3 Fix unreachable code in Unity on fully covered switch statements The clang compiler warns here with -Wunreachable-code The enum's switch statement covers all cases, so default is unused Leave the break in the code as a comment, to be more clear The history is this default case was added in f6bb7162 - compiler warning. Then the break was added in c6dc96f3. jsalling 2016-02-27 10:26:04 -06:00
  • e84a7c0a7d Merge pull request #179 from jsalling/feature/unity-coverage Mark VanderVoord 2016-03-02 07:06:22 -05:00
  • da0f2a0a74 Add Makefile with coverage target for Unity Unity is at 92% coverage now Run 'make -s' to see coverage information for unity.c Run 'make uncovered' to get missing lines output jsalling 2016-02-28 21:16:45 -06:00
  • 295a7906fe Merge pull request #178 from jsalling/feature/coverage-fixture Mark VanderVoord 2016-03-01 06:56:01 -05:00
  • 94fc68942b 100% code coverage for Unity Fixture Add tests for uncovered lines jsalling 2016-02-15 23:58:27 -06:00
  • cc0f58cfbc Create coverage target in Makefile to output statement coverage with gcov jsalling 2016-02-15 23:56:33 -06:00
  • ce6f4737b2 Merge pull request #175 from jsalling/feature/C89-build Mark VanderVoord 2016-02-29 16:59:40 -05:00
  • 4187255a8f Merge pull request #176 from jsalling/refactor/ignored-tests Mark VanderVoord 2016-02-29 16:56:58 -05:00
  • 3bb51bd740 Fix C89 warnings about variables at top of scope, enums, variadic macros Add extern UnityFixture in internals header. Add C89 target in Makefile clang will show these warnings but can suppress "//" with -Wno-comment. jsalling 2016-02-17 22:26:18 -06:00
  • bcf6515329 Protect test runner generator against characters in strings that look like comments or functions Mark VanderVoord 2016-02-25 15:35:45 -05:00
  • f8d5f0eee6 Clean up Ignore Test function in Fixture By removing the call to the Conclude function the code is simplified and doesn't depend on global state updates. Tests that are ignored after the testBody is called still output the right EOL. jsalling 2016-02-11 15:06:09 -06:00
  • 915e3fb9fc Merge pull request #174 from jsalling/feature/using-spy-macro Mark VanderVoord 2016-02-25 13:05:12 -05:00
  • f55bed38a6 Delete function call syntax from Spy detect macros This fixes #168. See that github.com issue for more discussion. Allows the tests to build when putchar() is defined as a macro with parenthesis around it, as in the ARM embedded gcc compiler. jsalling 2016-02-24 00:19:53 -06:00
  • 49e0c87841 Add output styler for junit output (Thanks Kris Boultbee) Mark VanderVoord 2016-02-25 11:34:46 -05:00
  • 324000d8e2 Merge pull request #173 from jsalling/rename/template Mark VanderVoord 2016-02-24 21:57:23 -05:00
  • 862d5d7d3d Rename template for testing to be more fitting jsalling 2016-02-16 22:32:32 -06:00
  • a7f81e8a04 Merge pull request #172 from pacheco017/UnityPrintFloat-overflow-fixes Mark VanderVoord 2016-02-24 20:16:45 -05:00
  • c17705358f UnityPrintFloat(): bigger temporal buffer Matias Devenuta 2016-02-24 19:52:30 -03:00
  • 50259a1329 Fix UnityPrintFloat() buffer overflow Matias Devenuta 2016-02-18 17:43:55 -03:00
  • 433ee63575 Added ability to finish test immediately with a pass condition by using TEST_PASS Mark VanderVoord 2016-02-24 16:00:55 -05:00
  • 3a775ccd70 Merge pull request #171 from jsalling/feature/fix-linux-warnings Mark VanderVoord 2016-02-24 06:46:29 -05:00
  • 3faa143f21 Fix additional primitive type conversion warnings on Linux Using gcc 4.8 on Ubuntu 14 jsalling 2016-02-23 14:46:52 -06:00
  • 7fff3fc034 Merge pull request #170 from jsalling/feature/fix-compiler-warnings Mark VanderVoord 2016-02-23 06:38:57 -05:00
  • 4cc964962b Merge pull request #169 from jsalling/feature/remove-wrappers Mark VanderVoord 2016-02-22 07:12:49 -05:00