0247e34b1f
Merge pull request #190 from jsalling/feature/differentiate-final-ouput
...
Add option to print FAILED instead of FAIL during the summary
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
2016-04-27 21:00:04 -05:00
a00e879d3d
Merge pull request #189 from rikvdh/master
...
Thanks @rikvdh for catching some instances where we should have been using isnan and such that were missing!
2016-04-27 06:54:14 -04:00
23271e81a6
also check for isinf
2016-04-27 10:25:11 +02:00
74581c357e
use isnan instead of comparing floats, fixes #188
2016-04-27 10:17:43 +02:00
4f2cdb03fc
Merge pull request #185 from jsalling/feature/output-declaration
...
Add Unity Fixture to the travisCI build and restore header declaration of UNITY_OUTPUT_CHAR
2016-04-26 22:53:41 -04:00
e97c4fb5e5
Merge pull request #186 from xor-gate/strict-cflag-fix-missing-var-decl-clang
...
Fixup issues when compiling with clang -Wmissing-variable-declarations
2016-04-26 08:48:59 -04:00
6a02f7e51c
Fixup issues when compiling with clang -Wmissing-variable-declarations
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.
2016-04-24 23:30:19 -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
2016-04-24 23:30:01 -05:00
25a3666e47
Add Unity Fixture to the travisCI build, and use Makefile builds
...
Prevent changes in core Unity from silently breaking Fixture
2016-04-24 12:07:51 -05:00
5ceab7193f
Update Version
2016-04-14 21:22:25 -04:00
1c7e1bd5a2
Merge pull request #183 from xor-gate/master
...
Fix #182 , remove redundant function declarations (Thanks xor-gate!)
2016-04-13 07:44:59 -04:00
720ea42a82
tests/testunity.c: Fix after redundant declarations fix
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
2016-04-13 12:19:04 +02:00
8c37d7b98a
Fix #182 , remove redundant function declarations
2016-04-13 11:33:57 +02:00
64d98f240a
Merge pull request #177 from jsalling/refactor/unreachable
...
Fix unreachable code in Unity on fully covered switch statements
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'.
2016-03-02 14:56:09 -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.
2016-03-02 14:22:01 -06:00
e84a7c0a7d
Merge pull request #179 from jsalling/feature/unity-coverage
...
Add Makefile with coverage target for Unity
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
2016-03-01 21:24:53 -06:00
295a7906fe
Merge pull request #178 from jsalling/feature/coverage-fixture
...
100% code coverage for Unity Fixture
2016-03-01 06:56:01 -05:00
94fc68942b
100% code coverage for Unity Fixture
...
Add tests for uncovered lines
2016-02-29 23:39:03 -06:00
cc0f58cfbc
Create coverage target in Makefile to output statement coverage with gcov
2016-02-29 23:25:39 -06:00
ce6f4737b2
Merge pull request #175 from jsalling/feature/C89-build
...
Fix C89 warnings about variables at top of scope, enums, variadic macros
2016-02-29 16:59:40 -05:00
4187255a8f
Merge pull request #176 from jsalling/refactor/ignored-tests
...
Clean up IgnoreTest function in Fixture
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.
2016-02-26 20:51:04 -06:00
bcf6515329
Protect test runner generator against characters in strings that look like comments or functions
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.
2016-02-25 13:12:22 -06:00
915e3fb9fc
Merge pull request #174 from jsalling/feature/using-spy-macro
...
Delete function call syntax from Spy detect macros
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.
2016-02-25 10:41:04 -06:00
49e0c87841
Add output styler for junit output (Thanks Kris Boultbee)
2016-02-25 11:34:46 -05:00
324000d8e2
Merge pull request #173 from jsalling/rename/template
...
Rename template for testing to be more fitting
2016-02-24 21:57:23 -05:00
862d5d7d3d
Rename template for testing to be more fitting
2016-02-24 20:24:14 -06:00
a7f81e8a04
Merge pull request #172 from pacheco017/UnityPrintFloat-overflow-fixes
...
UnityPrintFloat overflow fixes. (Thanks pacheco017!)
2016-02-24 20:16:45 -05:00
c17705358f
UnityPrintFloat(): bigger temporal buffer
...
With a buffer long enough, no truncation should be neccesary to format floats.
Buffer length is user settable by defining UNITY_VERBOSE_NUMBER_MAX_LENGTH,
otherwise a sensible default is used based on desired precision.
See: http://stackoverflow.com/a/7235717
2016-02-24 19:58:54 -03:00
50259a1329
Fix UnityPrintFloat() buffer overflow
...
UnityPrintFloat() overflowed with some inputs (eg. FLT_MAX)
2016-02-24 19:47:58 -03:00
433ee63575
Added ability to finish test immediately with a pass condition by using TEST_PASS
2016-02-24 16:00:55 -05:00
3a775ccd70
Merge pull request #171 from jsalling/feature/fix-linux-warnings
...
Fix additional primitive type conversion warnings on Linux
2016-02-24 06:46:29 -05:00
3faa143f21
Fix additional primitive type conversion warnings on Linux
...
Using gcc 4.8 on Ubuntu 14
2016-02-23 14:46:52 -06:00
7fff3fc034
Merge pull request #170 from jsalling/feature/fix-compiler-warnings
...
Clean up int conversion warnings in Fixture
2016-02-23 06:38:57 -05:00
4cc964962b
Merge pull request #169 from jsalling/feature/remove-wrappers
...
Delete unused Fixture internals functions for failure, ignore, & test counts
2016-02-22 07:12:49 -05:00
f31667ad18
Merge pull request #166 from jsalling/bugfix/line-numbers
...
Bugfix - line numbers output by Fixture memory checks
2016-02-18 14:18:20 -05:00
3826b3a1e1
Merge pull request #164 from jsalling/bugfix/conversion-warnings
...
Clean up int conversion warnings in core Unity using a 32-bit build
2016-02-18 07:02:08 -05:00
05066785e1
Merge pull request #163 from jsalling/feature/move-makefile-output
...
Move Makefile output to build/ directory in Fixture (Thanks jsalling!)
2016-02-18 06:50:15 -05:00
2337d6e837
Merge pull request #165 from jsalling/cleanup/file-permissions
...
Permissions changed back from -x for testunity.c (Thanks jsalling!)
2016-02-18 06:47:09 -05:00
2107e7060b
Variables used in Fixture tests should be static
...
Gets rid of warnings about extern with clang's -Weverything
2016-02-17 22:20:56 -06:00
7b0f3cf986
Clean up conversion warnings in Fixture
...
Turn on -Wconversion in Makefile, fix all warnings
2016-02-17 22:17:05 -06:00
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.
2016-02-12 15:59:46 -06:00
773c7f1770
Permissions changed to -x for testunity.c, reverts part of 51af84a7
2016-02-12 13:25:14 -06:00