Mark VanderVoord
23f9c16aaa
Another round of fixing things that the stylizer “corrected” for me.
2017-03-28 08:59:58 -04:00
Mark VanderVoord
3a6cca39c5
Fixed things that the stylizer “autocorrected” to wrong. ;)
2017-03-28 08:52:10 -04:00
Mark VanderVoord
3062c39725
Starting to enforce our coding style. The first step is that we’ve pulled in Rubocop to check out Ruby syntax. There is likely a bit of customization to do yet AND there is definitely that backlog of todo’s that we just told it to ignore.
2017-03-28 08:44:32 -04:00
Mark VanderVoord
550d58ba2d
Attempt to fix remaining issues with casting
2017-03-26 19:46:42 -04:00
Mark VanderVoord
ee038c248c
Ha! Forgot to add the correct comment style
2017-03-26 18:30:22 -04:00
Mark VanderVoord
d6b350874b
Clean up some const issues, particularly when moving between single and double pointers
2017-03-26 18:25:25 -04:00
Mark VanderVoord
4ffafce309
Finish updating documentation to match
2017-03-26 17:58:46 -04:00
Mark VanderVoord
083564b837
Update docs to also understand the new Each Equal handlers
2017-03-26 17:54:28 -04:00
Mark VanderVoord
0dddf498c2
also update strings to support each element of an array.
2017-03-21 23:57:15 -04:00
Mark VanderVoord
a11a13750d
Added memory each equal assertion
2017-03-21 18:28:49 -04:00
Mark VanderVoord
d8d67a708c
Added each_equal assertions for float and double
2017-03-21 17:05:19 -04:00
Mark VanderVoord
b7956ea988
Added more tests for all the numerical types when performing each_equal assertions
2017-03-21 16:24:16 -04:00
Mark VanderVoord
7fe31915d0
Added some tests to prove this works. Still work in progress
2017-03-21 14:37:52 -04:00
Mark VanderVoord
56eeacd0b2
prepare for comparing value to array by setting up explicit compare of array to array in ints
2017-03-21 08:00:48 -04:00
Mark VanderVoord
7b80885c68
Merge pull request #272 from FSMaxB/gcc43-wconversion
...
Fix -Wconversion with gcc-4.3
2017-03-20 16:36:43 -04:00
Mark VanderVoord
0781e74ac6
Add our coding standard to documentation
2017-03-20 16:29:40 -04:00
Mark VanderVoord
c3658a065d
Dropped support for pre-2.0 versions of Ruby (not even rubylang supports them anymore)
2017-03-20 16:07:40 -04:00
Mark VanderVoord
8a45ccf406
Use custom mock prefix when searching for mock header files. #263
2017-03-20 15:56:05 -04:00
Mark VanderVoord
689610b864
reorder includes in generated test runners
2017-03-20 15:49:28 -04:00
Mark VanderVoord
43c751173d
stdlib.h explicitly called in fixtures when malloc used, now. (Fixes issue #268 )
2017-03-20 14:09:26 -04:00
Max Bruckner
1c556d2e4c
Fix -Wconversion with gcc-4.3
2017-03-18 17:42:02 +01:00
Mark VanderVoord
8723d50f0e
Turn UNITY_OUTPUT_FLUSH off by default. Added a quick-define for the most common case: UNITY_USE_FLUSH_STDOUT. Clarified documentation. Fixes issue #269
2017-03-14 23:23:19 -04:00
Mark VanderVoord
c67a4ffcf3
- Add ability to detect TEST_FILE(“filename.c”) specifications in test files
2017-03-13 17:23:26 -04:00
Mark VanderVoord
41ee499e63
Tiny tweaks to make Unity fit in more smoothly with Ceedling
2017-03-13 16:46:41 -04:00
Mark VanderVoord
1f522558a6
Merge pull request #267 from FSMaxB/fix-wconversion
...
Fix gcc warning with ubsan and -Wconversion
2017-03-01 12:45:40 -05:00
Max Bruckner
7bce0b4f0c
Fix warning with ubsan and -Wconversion
...
This fixes a compiler warning about a lossy conversion from long
unsigned int to int when compiling unity with gcc 6.3.1 and
the options -std=c89 -Wconversion -fsanitize=undefined
2017-03-01 17:10:16 +01:00
Mark VanderVoord
b5da224fd8
Merge pull request #266 from FSMaxB/fix-double-promotion
...
Fix warnings with -Wdouble-promotion
2017-03-01 10:07:18 -05:00
Max Bruckner
1bf22d39f5
Fix warnings with -Wdouble-promotion
...
This fixes compiler warnings that clang produces with the
-Wdouble-promotion compiler option.
This only happens if double precision floating point numbers are
enabled.
The implicit double promotion occurs because numbers of type UNITY_FLOAT
are passed into UnityPrintFloat, which expects const UNITY_DOUBLE.
This commit fixes it by explicitly casting to UNITY_DOUBLE.
2017-03-01 10:15:06 +01:00
Mark VanderVoord
2988e980fb
Merge pull request #262 from codehearts/patch-2
...
Fixed incorrect TEST_PROTECT explanation in readme
2017-02-15 06:37:21 -05:00
Kate Hart
1732698324
Fixed incorrect TEST_PROTECT explanation in readme
2017-02-14 09:55:40 -08:00
Mark VanderVoord
381737538d
Merge pull request #260 from jeremyhannon/parseUnityFixtureOutputToJUnitFormat
...
Enhance parseOutput.rb to support Unity fixture output
2017-02-13 21:22:57 -05:00
Mark VanderVoord
9d5159f940
Merge pull request #261 from codehearts/patch-1
...
Fixed typo for TEST_PROTECT in readme
2017-02-13 21:20:22 -05:00
Kate Hart
65ce72729c
Fixed typo for TEST_PROTECT in readme
...
`setjmp` returns 0 on direct invocation, and non-zero when returned to from `longjmp`. Because `TEST_PROTECT` checks the return value of `setjmp` against 0, checking the return value of `TEST_PROTECT` against 0 is incorrect in the readme.
2017-02-13 16:15:12 -08:00
Jeremy Hannon
4dc04d3977
Enhance parseOutput.rb to support Unity fixture output
...
unity.h and unity_fixture.h output their results in different string formats. This parseOutput.rb script already parsed the unity.h output to generate a JUnit-style XML summary which could be parsed by CI servers to graph the history of test pass/fail results. The changes in this commit allow the script to also handle the output format of unity_fixture.h which utilizes groups to add a layer of organization for tests.
The changes in this commit were authored by Justin Seifi, my coworker, who has approved of me submitting his work back to this open source framework repo.
2017-02-07 10:38:49 -06:00
Mark VanderVoord
1782bab0ba
handle undetailed lines test summary python script.
2017-01-31 10:10:31 -05:00
Mark VanderVoord
b10e9d0486
Merge pull request #258 from jsalling/feature/max-nibbles
...
Test for printing max width of a hex number, back to 100% test coverage
2017-01-26 08:29:38 -05:00
Mark VanderVoord
60d59d7043
Merge pull request #257 from Letme/master
...
Align definition and declaration of UnityPrintFloat
2017-01-24 21:14:30 -05:00
Crt Mori
3588e5b6d3
Aligning definition and declaration of UnityPrintFloat
...
There was a mismatch of definition and declaration of UnityPrintFloat
and this commit aligns both on const UNITY_DOUBLE, but then inside it
actually uses a positive version of the variable only.
2017-01-24 22:52:43 +01:00
jsalling
b4f6afa4cf
Test for printing max width of a hex number, back to 100% test coverage
...
Correct clean target and print test fails during coverage in Makefile
2017-01-23 23:05:06 -06:00
Mark VanderVoord
ff03e1c915
Merge pull request #252 from jsalling/feature/compile-examples
...
Compile examples during continuous integration
2017-01-23 08:02:45 -05:00
jsalling
e0104179ed
Fix 32-bit build issues on Travis-CI by installing multilib
...
If, longer term, the Travis-CI support for 32-bit is inconsistent
the lines that failed are:
- make -s DEBUG=-m32
- cd ../example_3 && rake
Add target 'ci' for building examples with -Werror
2017-01-22 21:13:08 -06:00
Mark VanderVoord
a15f0da0d0
Merge pull request #253 from jsalling/feature/cpputest-macros
...
Option to exclude CppUTest compatibility asserts (Thanks!)
2017-01-19 06:57:28 -05:00
Mark VanderVoord
78938f6f05
Merge pull request #254 from jsalling/cleanup/clang-format
...
Formatting source code to existing style
2017-01-19 06:56:35 -05:00
Mark VanderVoord
a3fe04f6a4
Merge pull request #255 from jsalling/cleanup/function-prototypes
...
Removing unnecessary function prototypes, inline PrintOk/Fail
2017-01-19 06:54:17 -05:00
jsalling
97e4bd252a
Ran Unity into a source code formatter, no code changes
...
Used clang-format, which produces noise on stuff you don't care about
and requires setting it up to match the existing code base. Kept the
potentially useful changes, discarded the rest, some manual tweaking
required. It did catch lots of pesky indentation mistakes.
2017-01-18 19:48:40 -06:00
jsalling
bb7f889f03
Compile examples in continuous integration, update example_3 readme
...
Altered the rake build so that it passes. The example_3 shows off
some failing tests, so the rake build has to ignore those.
Update .gitignore file with executables from examples
2017-01-18 19:33:24 -06:00
jsalling
b29ad2ee68
Removing unnecessary function prototypes, inline PrintOk/Fail
2017-01-18 09:14:02 -06:00
jsalling
9cdc3d678b
Option to exclude CppUTest compatibility asserts
2017-01-18 08:43:29 -06:00
jsalling
185fb49380
Cleanup example Makefiles, update test runners
...
Delete clang flags that were disabled with -Wno-*
2017-01-18 08:13:41 -06:00
Mark VanderVoord
04e10f95ee
Merge pull request #249 from jsalling/feature/no-print-mask
...
No print masking of integers, bounds on hex printing (Thanks!)
2017-01-18 09:01:45 -05:00