- 07 1月, 2016 3 次提交
-
-
由 Mark VanderVoord 提交于
Fixture - require spy or else ignore tests
-
由 Mark VanderVoord 提交于
Fix trailing whitespace CRLF, no code changes
-
由 jsalling 提交于
Now that the project is using .gitattributes, get rid of CRLF in the repo.
-
- 06 1月, 2016 1 次提交
-
-
由 Mark VanderVoord 提交于
Add tests for printing numbers, interface for spying on output strings (Thanks! I like this idea!)
-
- 05 1月, 2016 3 次提交
-
-
由 Mark VanderVoord 提交于
- tweak docs
-
由 Mark VanderVoord 提交于
Refactor Fixture, no EOL with ignored tests, add a Makefile for Fixture tests
-
由 Mark VanderVoord 提交于
Fix printing of largest negative number
-
- 29 12月, 2015 2 次提交
-
-
由 Mark VanderVoord 提交于
Include <stdio.h> (for sprintf) when using UNITY_FLOAT_VERBOSE (thanks pacheco017!)
-
由 Matias Devenuta 提交于
-
- 23 12月, 2015 1 次提交
-
-
由 jsalling 提交于
Add CFLAGS in Fixture Makefile to catch C99 rules with '-pedantic'
-
- 22 12月, 2015 2 次提交
-
-
由 jsalling 提交于
Ignore tests that need the Spy if we are not building with it
-
由 jsalling 提交于
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.
-
- 21 12月, 2015 1 次提交
-
-
由 jsalling 提交于
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
-
- 19 12月, 2015 1 次提交
-
-
由 jsalling 提交于
No rake and ruby required to build existing tests
-
- 17 12月, 2015 1 次提交
-
-
由 jsalling 提交于
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()
-
- 16 12月, 2015 3 次提交
- 15 12月, 2015 1 次提交
-
-
由 jsalling 提交于
'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
-
- 11 12月, 2015 4 次提交
-
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
-
由 Mark VanderVoord 提交于
- Fixed a big ugly error in the fancy RUN_TEST handler
-
由 Mark VanderVoord 提交于
-
- 08 12月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
- Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME!
-
- 04 12月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
-
- 24 11月, 2015 4 次提交
-
-
由 Mark VanderVoord 提交于
Move UNITY_PRINT_EOL to internals, change to function macro (Thanks, jsalling!)
-
由 jsalling 提交于
This helps clarity and is more obvious, it looks like a print function
-
由 jsalling 提交于
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 提交于
Unity fixture needs access to this macro to be consistent. Add #ifndef wrapper for easier redefinition on systems that use "\r\n".
-
- 13 11月, 2015 2 次提交
-
-
由 Mark VanderVoord 提交于
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 提交于
Fix some C++ compatibility issues
-
- 11 11月, 2015 1 次提交
-
-
由 Mark VanderVoord 提交于
docs: fix some typos
-
- 10 11月, 2015 1 次提交
-
-
由 Paul Wilkinson 提交于
-
- 29 10月, 2015 1 次提交
-
-
由 Andy Isaacson 提交于
The intent of UNITY_WEAK_PRAGMA is that we have weak symbols for setUp and tearDown in unity.o, so that developers can override these symbols if needed but the link works right if they are not defined. In order to do this using #pragma, the pragma and the definition of the function (not the declaration) need to be present in the same translation unit (source code file). Previously, the UNITY_WEAK_PRAGMA code was just declaring the setUp function, but not defining it, which means that developers had to add an empty setUp function to their tests in order to link.
-
- 28 10月, 2015 2 次提交
-
-
由 Andy Isaacson 提交于
-
由 Andy Isaacson 提交于
-
- 15 10月, 2015 2 次提交
-
-
由 Mark VanderVoord 提交于
MISRA rule 19.10: parentheses around macro params
-
由 Jeremy Hannon 提交于
Added parentheses around all macro parameters to resolve MISRA 2004 rule 19.10, "in the definition of a function-like macro, each instance of a parameter shall be enclosed in parenthesis" as tested with the IAR EW for 8051 compiler, version 9.20.2. The only questionable change is in "unity_fixture.h" where the nested macro DECLARE_TEST_CASE in RUN_TEST_CASE prevents surrounding params "group" and "name" with parentheses. However, it appears that macro DECLARE_TEST_CASE isn't used elsewhere, so I eliminated DECLARE_TEST_CASE and put its expansion directly in RUN_TEST_CASE. Now the following header files pass rule 19.10: * unity.h * unity_internals.h * unity_fixture.h For my own project, this change to the Unity test framework allows me to include my unit test code to be tested against MISRA rules as well, instead of just production code, to help enforce style and team guidelines.
-
- 06 10月, 2015 2 次提交
-
-
由 Mark VanderVoord 提交于
unity_fixture: Make unity_free() NULL-safe
-
由 Gergely Nagy 提交于
At the start of unity_free(), check mem for NULL, and return immediately if it is, so we don't crash in this case. This mimics the behaviour of most free() implementations. Closes #135. Signed-off-by: NGergely Nagy <algernon@madhouse-project.org>
-