Commit Graph

  • 74581c357e use isnan instead of comparing floats, fixes #188 Rik van der Heijden 2016-04-27 10:17:43 +0200
  • 4f2cdb03fc Merge pull request #185 from jsalling/feature/output-declaration Mark VanderVoord 2016-04-26 22:53:41 -0400
  • 81896252e8 Followup of PR #185 without breaking the UNITY_OUTPUT_CHAR behaviour, add fixture building to travis Jerry Jacobs 2016-04-26 15:06:14 +0200
  • e97c4fb5e5 Merge pull request #186 from xor-gate/strict-cflag-fix-missing-var-decl-clang Mark VanderVoord 2016-04-26 08:48:59 -0400
  • 6a02f7e51c Fixup issues when compiling with clang -Wmissing-variable-declarations Jerry Jacobs 2016-04-26 14:17:10 +0200
  • 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 -0500
  • 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 -0500
  • 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 -0500
  • 5ceab7193f Update Version Mark VanderVoord 2016-04-14 21:22:25 -0400
  • 1c7e1bd5a2 Merge pull request #183 from xor-gate/master Mark VanderVoord 2016-04-13 07:44:59 -0400
  • 720ea42a82 tests/testunity.c: Fix after redundant declarations fix Jerry Jacobs 2016-04-13 12:59:31 +0200
  • 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 +0200
  • 8c37d7b98a Fix #182, remove redundant function declarations Jerry Jacobs 2016-04-13 11:33:57 +0200
  • 4d54d5110e Update generate_test_runner.rb shellyniz 2016-04-11 10:29:03 +0300
  • 53b24124cb Update generate_test_runner.rb shellyniz 2016-04-11 09:51:12 +0300
  • 80deb707cb Update generate_test_runner.rb shellyniz 2016-04-11 09:17:23 +0300
  • b94ab828a5 Update generate_test_runner.rb shellyniz 2016-04-11 09:09:12 +0300
  • 82cef729cd added cmd line args (argc, argv) support shellyniz 2016-04-11 09:03:01 +0300
  • 76a4d213a9 Added cmd line args support shellyniz 2016-04-11 08:58:24 +0300
  • b701b4d02b Added generation options and cmd line args support shellyniz 2016-04-11 08:53:03 +0300
  • fd32c7a376 Merge pull request #1 from ThrowTheSwitch/master shellyniz 2016-03-24 13:41:19 +0200
  • 64d98f240a Merge pull request #177 from jsalling/refactor/unreachable Mark VanderVoord 2016-03-02 17:21:36 -0500
  • 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 -0600
  • 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 -0600
  • e84a7c0a7d Merge pull request #179 from jsalling/feature/unity-coverage Mark VanderVoord 2016-03-02 07:06:22 -0500
  • 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 -0600
  • 295a7906fe Merge pull request #178 from jsalling/feature/coverage-fixture Mark VanderVoord 2016-03-01 06:56:01 -0500
  • 94fc68942b 100% code coverage for Unity Fixture Add tests for uncovered lines jsalling 2016-02-15 23:58:27 -0600
  • cc0f58cfbc Create coverage target in Makefile to output statement coverage with gcov jsalling 2016-02-15 23:56:33 -0600
  • ce6f4737b2 Merge pull request #175 from jsalling/feature/C89-build Mark VanderVoord 2016-02-29 16:59:40 -0500
  • 4187255a8f Merge pull request #176 from jsalling/refactor/ignored-tests Mark VanderVoord 2016-02-29 16:56:58 -0500
  • 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 -0600
  • bcf6515329 Protect test runner generator against characters in strings that look like comments or functions Mark VanderVoord 2016-02-25 15:35:45 -0500
  • 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 -0600
  • 915e3fb9fc Merge pull request #174 from jsalling/feature/using-spy-macro Mark VanderVoord 2016-02-25 13:05:12 -0500
  • 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 -0600
  • 49e0c87841 Add output styler for junit output (Thanks Kris Boultbee) Mark VanderVoord 2016-02-25 11:34:46 -0500
  • 324000d8e2 Merge pull request #173 from jsalling/rename/template Mark VanderVoord 2016-02-24 21:57:23 -0500
  • 862d5d7d3d Rename template for testing to be more fitting jsalling 2016-02-16 22:32:32 -0600
  • a7f81e8a04 Merge pull request #172 from pacheco017/UnityPrintFloat-overflow-fixes Mark VanderVoord 2016-02-24 20:16:45 -0500
  • c17705358f UnityPrintFloat(): bigger temporal buffer Matias Devenuta 2016-02-24 19:52:30 -0300
  • 50259a1329 Fix UnityPrintFloat() buffer overflow Matias Devenuta 2016-02-18 17:43:55 -0300
  • f0ea17f4bd Merge eeb888494e into 433ee63575 pacheco017 2016-02-24 21:01:05 +0000
  • 433ee63575 Added ability to finish test immediately with a pass condition by using TEST_PASS Mark VanderVoord 2016-02-24 16:00:55 -0500
  • 3a775ccd70 Merge pull request #171 from jsalling/feature/fix-linux-warnings Mark VanderVoord 2016-02-24 06:46:29 -0500
  • 3faa143f21 Fix additional primitive type conversion warnings on Linux Using gcc 4.8 on Ubuntu 14 jsalling 2016-02-23 14:46:52 -0600
  • 7fff3fc034 Merge pull request #170 from jsalling/feature/fix-compiler-warnings Mark VanderVoord 2016-02-23 06:38:57 -0500
  • 4cc964962b Merge pull request #169 from jsalling/feature/remove-wrappers Mark VanderVoord 2016-02-22 07:12:49 -0500
  • eeb888494e UnityPrintFloat(): bigger temporal buffer Matias Devenuta 2016-02-18 17:45:53 -0300
  • 6c1f1c02c1 Fix UnityPrintFloat() buffer overflow Matias Devenuta 2016-02-18 17:43:55 -0300
  • f31667ad18 Merge pull request #166 from jsalling/bugfix/line-numbers Mark VanderVoord 2016-02-18 14:18:20 -0500
  • 3826b3a1e1 Merge pull request #164 from jsalling/bugfix/conversion-warnings Mark VanderVoord 2016-02-18 07:02:08 -0500
  • 05066785e1 Merge pull request #163 from jsalling/feature/move-makefile-output Mark VanderVoord 2016-02-18 06:50:15 -0500
  • 2337d6e837 Merge pull request #165 from jsalling/cleanup/file-permissions Mark VanderVoord 2016-02-18 06:47:09 -0500
  • 2107e7060b Variables used in Fixture tests should be static Gets rid of warnings about extern with clang's -Weverything jsalling 2016-02-17 22:20:56 -0600
  • 7b0f3cf986 Clean up conversion warnings in Fixture Turn on -Wconversion in Makefile, fix all warnings jsalling 2016-02-17 22:17:05 -0600
  • c3371664ba Clean up int conversion warnings in core Unity using a 32-bit build To expose warnings use -Wconversion -m32, and *not* -D UNITY_SUPPORT_64 In 32-bit mode, the variable and parameter are the same width, so sign conversion is implicit. In 64-bit, implicit conversion is clean. jsalling 2016-02-12 15:59:46 -0600
  • 773c7f1770 Permissions changed to -x for testunity.c, reverts part of 51af84a7 jsalling 2016-02-12 13:25:14 -0600
  • ad14ccf26b Add strict compiler flags to Makefile and a 'clean' target Comment out -Wconversion for now, since the build would fail jsalling 2016-02-09 14:24:00 -0600
  • 5e7780fd60 Delete unused internals functions for failure, ignore, & test counts. These wrapper functions should be in Unity core if warranted. Use the Unity struct directly for access, or consider macro functions jsalling 2016-02-05 22:11:20 -0600
  • 943fef8a17 Fix printing the test line number for leak detection failures in Fixture The old failure would print the line in unity_fixture.c, not very useful. Now using CurrentTestLineNumber, which is better. jsalling 2016-02-09 10:39:22 -0600
  • 36ee2d2111 Add test for setting max number of pointers in Fixture jsalling 2016-02-09 10:36:33 -0600
  • 822a537d2e Remove opaque typedef from UnityFixture struct, as done in core Unity jsalling 2016-02-08 16:53:10 -0600
  • 6b664fc803 Pass through correct line info on failures in Fixture pointer setting jsalling 2016-01-15 22:59:52 -0600
  • 4c384658e5 Move makefile output to build/ dir for Fixture testing jsalling 2016-02-05 21:48:23 -0600
  • 189085d03a Check for writes to guard space on malloc'd buffers in Fixture There was already some space reserved as a guard, added check for writes before the beginning of the buffer. Did not change the 'overrun' message. Underrun buffer writes are likely to be a more rare case. jsalling 2016-02-05 18:56:44 -0600
  • 7943c766b9 Merge pull request #161 from jsalling/feature/fixture-remove-dependencies Mark VanderVoord 2016-02-03 21:00:24 -0500
  • 955b221218 Add configuration option UNITY_EXCLUDE_STDLIB_MALLOC to Fixture This feature removes the dependency on malloc/free for constrained embedded systems without a heap. It uses a static heap inside Unity Fixture. Setting UNITY_INTERNAL_HEAP_SIZE_BYTES sizes the heap. Add tests for new option, add targets to makefile for running tests. UNITY_FIXTURE_MALLOC for Fixture use only, remove from unity_output_Spy.c. jsalling 2016-02-01 23:54:06 -0600
  • ed2842fd4d Merge pull request #160 from pmendham/master Mark VanderVoord 2016-02-01 18:20:37 -0500
  • 099b0db22b Updated mock determination code to be more efficient applying the feedback from @mvandervoord (Thanks). Peter Mendham 2016-02-01 22:48:23 +0000
  • ccb29e80c2 Add NULL safety checks to Fixture allocation functions Consistent use of one-liners and NULL jsalling 2016-01-31 23:15:00 -0600
  • e2ad88b9c0 Add checks for NULL return value to Fixture tests and spy Help failures in the spy by adding filename and message to output jsalling 2016-01-31 22:44:45 -0600
  • 63a0b98faf Remove atoi() dependency, only need stdlib.h in Fixture for malloc For redefinition of UNITY_FIXTURE_MALLOC/...FREE use both or replace both. Clean up whitespace, remaining void*, and comment. jsalling 2016-01-30 22:35:59 -0600
  • 4ea563e65b Added support for mocks in sub-directories. This supports mock headers of the form: #include "some/dir/MockMyCode.h" Where the mock name is actually MockMyCode. Peter Mendham 2016-01-28 20:45:58 +0000
  • f36bd5f521 Merge pull request #159 from pmendham/master Mark VanderVoord 2016-01-27 09:52:01 -0500
  • 9a9d6c75cf Removed unecessary output when generating a test runner Peter Mendham 2016-01-27 14:42:29 +0000
  • 2179e54d6d Merge pull request #158 from jsalling/bugfix/fixture-rakefile-fails Mark VanderVoord 2016-01-24 09:55:50 -0500
  • 044a1f517d Merge pull request #156 from pmendham/master Mark VanderVoord 2016-01-20 09:08:18 -0500
  • 55a75ded7a Improved header file generation. Changed the guard syntax as it was cumbersome for header files in deep sub-directories. Added framework/mock includes to make the header file stand alone. Made sure that a valid prototype was generated in the case of no arguments (void). Peter Mendham 2016-01-20 13:48:15 +0000
  • 2e4799111c Added a command line option to change the name of main. This allows alternative entry points. This is intended for the integration of the unit test into a larger system or for it to be used with a platform/OS which requires an application entry point other than main. At the moment there is no way to change the type signature. Peter Mendham 2016-01-20 13:45:25 +0000
  • cd472439bf Fixture rakefile has a conflict defining UNITY_OUTPUT_CHAR Make core Unity rakefile helper follow Fixture define procedure. This commit reverts parts of 36e2ca1. jsalling 2016-01-19 23:47:32 -0600
  • 34a30f8e98 Delete dangling function prototype in Fixture internals jsalling 2016-01-15 23:30:23 -0600
  • a7b60dfc88 Consistent use of * in types in the Fixture, whitespace only jsalling 2016-01-15 23:11:29 -0600
  • 693417847b Remove unnecessary stdio.h dependency and clean up Fixture Delete unused variables and empty functions Make setUp & tearDown (used in Unity core) optionally defined if 'weak' linking is present jsalling 2016-01-15 22:35:43 -0600
  • 10146392c8 Merge pull request #154 from jsalling/bugfix/AssertNumbersWithin-overflow Mark VanderVoord 2016-01-07 20:45:35 -0500
  • 33325f4a0b More fixes to line endings Mark VanderVoord 2016-01-07 14:20:59 -0500
  • d1111d92af Merge pull request #152 from jsalling/feature/fixture-ignore-tests-require-spy Mark VanderVoord 2016-01-07 07:56:47 -0500
  • 716f88caca Merge pull request #153 from jsalling/refactor/trailing-whitespace Mark VanderVoord 2016-01-06 20:41:34 -0500
  • 4108319007 Fix for overflow issue in UnityAssertNumbersWithin() Make subtraction result unsigned, change prototype & casts in internals. If "actual - expected" overflowed, it wrapped to a negative number, but would fit in an unsigned type, example is INT_MAX - (-1) = INT_MIN For correctness, 'delta' should be unsigned too. Passing in a negative number always passed. The delta can be between INT_MAX & UINT_MAX. jsalling 2015-12-20 11:42:43 -0600
  • 8ca3062ad4 Adding tests for overflow when calling UnityAssertNumbersWithin() 32 or 64 bit test will fail if compiled with -m32 or -m64, repectively on clang or gcc Fixes to the failures will follow jsalling 2015-12-16 00:04:17 -0600
  • 04adb2d2c9 Fix trailing whitespace CRLF, no code changes Now that the project is using .gitattributes, get rid of CRLF in the repo. jsalling 2016-01-06 17:23:43 -0600
  • edfba3793e Merge pull request #151 from jsalling/bugfix/add-tests-for-printing-numbers Mark VanderVoord 2016-01-05 19:17:52 -0500
  • f52538d401 - fix whitespace - tweak docs Mark VanderVoord 2016-01-04 19:30:38 -0500
  • 0decf21b9d Merge pull request #149 from jsalling/refactor/fixture-cleanup Mark VanderVoord 2016-01-04 18:46:22 -0500
  • eac0943f53 Merge pull request #148 from jsalling/master Mark VanderVoord 2016-01-04 18:42:24 -0500
  • a61ba9d43f Merge pull request #150 from pacheco017/unity-float-verbose-includes Mark VanderVoord 2015-12-28 13:17:28 -0500
  • fe4001f876 Include <stdio.h> (for sprintf) when using UNITY_FLOAT_VERBOSE Matias Devenuta 2015-12-28 15:04:27 -0300
  • c5bfe0e100 Fixture C99 compliance on tricky macros for Spy & match core Unity version Add CFLAGS in Fixture Makefile to catch C99 rules with '-pedantic' jsalling 2015-12-22 12:40:31 -0600
  • 5cc5e3473d Add MACROs to check if tests are built using the Output Spy Ignore tests that need the Spy if we are not building with it jsalling 2015-12-18 17:50:32 -0600
  • 36e2ca192b Adding -D UNITY_OUTPUT_CHAR=putcharSpy to testing build targets Updated clang and gcc targets. Fixed spelling of LIMITS, which breaks the gcc_auto_sizeof.yml build. Commented -Wunreachable-code, Unity won't build on OSX clang with it, error in unity.c:769 & 932: 'default: break;' case. jsalling 2015-12-21 11:39:50 -0600