b1d8388ab8
Update unity_fixture.c
...
[../Unity-master/extras/fixture/src/unity_fixture.c:210]: (error) Memory leak: guard
Found by https://github.com/bryongloden/cppcheck
2016-07-26 14:19:41 -04:00
ad0c07c9ad
Merge pull request #204 from dmurdin/tms470
...
Weak attribute fix for TMS470 Compilers.
2016-07-13 06:49:48 -04:00
cec38d13d3
Merge pull request #203 from dmurdin/pathslash
...
Escape backslashes for windows paths, fixes #137 .
2016-07-13 06:48:57 -04:00
f1a4a5e652
Weak attribute fix for TMS470 Compilers.
...
Change-Id: I901bf192d3c06457d67c6d3a64bdb9aea22c53c2
2016-07-13 10:36:43 +02:00
44c429bd8b
Escape backslashes for windows paths, fixes #137 .
...
Change-Id: I2dbae30e21ab31921817f68fd7a5e08d21c76626
2016-07-13 10:31:52 +02:00
b3bc196ab3
making new flush routines work under all defined conditions.
2016-06-21 10:01:34 -04:00
c19b5e20a0
Merge pull request #198 from Liebherr-Nenzing/master
...
add unity_to_junit.py (Thanks!)
2016-06-21 06:47:29 -04:00
87af5a1675
add unity_to_junit.py
2016-06-21 09:43:26 +02:00
7c3d829070
Protect against files without any test output
2016-05-18 07:31:17 -04:00
d86a44b501
Merge pull request #131 from andyhelp/master
...
Change comments style to compile with std=c89 (Thanks Andy... and everyone else who helped make this decision)
2016-05-15 14:03:38 -04:00
83f7d5237b
Change example_1 to compile with std=c89
2016-05-15 14:35:56 +01:00
61dd3f181b
Change comments style in unity and test runner to compile with std=c89
2016-05-15 14:35:50 +01:00
a5a927f43e
Merge pull request #193 from wolf99/AddConfigTemplate
...
Add template example unity_config.h file. (Thanks wolf99!)
2016-05-12 11:08:10 -04:00
d7a371a993
Moved example unity_config.h from src to examples
...
As recommended in PR #193
2016-05-12 16:00:31 +01:00
287bcae478
Add template example unity_config.h file
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
2016-05-06 11:52:06 -04:00
e3612e9a10
Update Fixtures too.
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.
2016-05-06 10:47:39 -04:00
7053ef7523
Merge pull request #192 from jsalling/feature/unity-coverage
...
100% code coverage for Unity project (Thanks jsalling!)
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
2016-05-03 21:58:29 -05:00
bff491c73c
Test strings not equal to NULL when using length parameter
2016-05-03 20:47:00 -05:00
7c270e0541
Test that details are printed in a direct TEST_FAIL call
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
2016-05-03 20:26:42 -05:00
213e47178c
Test string arrays and memory comparison with length 0, it should fail
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
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
2016-05-03 20:02:01 -05:00
b971ec921f
Simplify printing StrPointless into a single macro, remove repeated code
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.
2016-05-02 23:50:28 -05:00
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