Mark VanderVoord
0892db2376
Protect against nil return codes in rakefiles
2019-07-06 11:31:31 -04:00
Mark VanderVoord
0000f1e6d2
Add TEST_MESSAGE for outputting messages without aborting a test and _MESSAGE variant to TEST_PASS collection.
2019-07-06 11:02:32 -04:00
Mark VanderVoord
bc72eeb211
Merge pull request #425 from farrrb/fix-ti-c55-sizeof
...
TI C55x compatibility patches - removal of sizeof operator from the interfaces
2019-07-05 15:41:41 -04:00
Mark VanderVoord
6b2eb52468
Add test to verify comment-stripping is working with http-style comments.
2019-07-05 15:35:40 -04:00
Fabian Zahn
8168382b91
Adjust testHexPrintsUpToMaxNumberOfNibbles (independent of sizeof operator and arithmetics)
2019-05-12 09:16:41 +02:00
Mark VanderVoord
d70047881e
Merge pull request #377 from elliot-gawthrop/execution-time-embedded
...
Execution time improvements
2019-05-04 07:53:37 -04:00
Mark VanderVoord
7514de0582
Merge branch 'master' into test-cleanup-gt-lt
2019-05-04 07:28:12 -04:00
Dom Postorivo
9340582797
ARRAY_WITHIN in unity
2019-04-20 14:10:56 -04:00
Dom Postorivo
89465c88b0
Add tests for GREATER_OR_EQUAL, LESS_OR_EQUAL, LESS_THAN, and GREATER_THAN
2019-04-14 15:59:40 -04:00
Dom Postorivo
f69fbe8a95
expliticly show test failures of unequal strings
2019-04-13 11:53:14 -04:00
elliot
076f0fff56
Improvements to the execution time feature
...
- Running time macros have been made more portable, previously it was not
possible to override all macros
- Running time macros will be executed by default test runner, and auto test
runners
- Adds a default execution time implementation for unix. (Previous default
implementation only worked on Windows)
- For embedded platforms there is a simple method of getting a default
implementation by defining a single macro UNITY_CLOCK_MS()
- Removed need for UNITY_EXEC_TIME_RESET. This was not being used for the default
implementations, if anything ever did need reset-like functionality it could
simply be wrapped up with the start or stop macros for that platform
2019-01-31 22:01:20 +00:00
Elliot Gawthrop
5db2a3dbd9
Add support for strings in TEST_CASE()
2018-12-10 20:53:27 +00:00
John Lindgren
39fbd13cae
Merge branch 'master' into float-printing
2018-11-28 14:02:41 -05:00
John Lindgren
6b657c6f17
Fix (most) Rubocop warnings.
2018-11-28 13:27:00 -05:00
elliot
f0e4571c96
Merge branch 'master' into unit-test-execution-time
2018-07-28 20:01:50 +01:00
Fabian Zahn
e038ae2ade
Refactored the test evaluation of the flushSpy
2018-02-18 18:44:58 +01:00
Fabian Zahn
436a46d8ef
Got the tests running
2018-02-18 17:43:08 +01:00
Fabian Zahn
2480a6124e
Added unit test for the call to flush
2018-02-18 17:08:49 +01:00
Fabian Zahn
5f67ac6ab2
Fixed copy and paste error, changed the signature from:
...
void flushSpy(int c) {}
to:
void flushSpy(void) {}
2018-02-18 16:32:04 +01:00
Fabian Zahn
37271e8a13
Fixed copy and paste error
2018-02-18 14:53:39 +01:00
Fabian Zahn
25804f3ab4
Added flushSpy and the respective helper functions
2018-02-18 14:46:42 +01:00
Fabian Zahn
456759296b
Added flushSpy
2018-02-18 14:23:26 +01:00
Fabian Zahn
fe950b9fa3
Makefile preparations
2018-02-18 14:11:19 +01:00
John Lindgren
a6d3f3a59a
Restore round-to-even behavior.
2017-11-07 23:25:27 -05:00
John Lindgren
2d4e32cda1
Print 9 digits if we have double precision capability.
2017-11-07 22:44:59 -05:00
John Lindgren
74ba70283a
Improve accuracy of UnityPrintFloat() for common cases.
2017-11-07 11:42:19 -05:00
John Lindgren
8ff74d6000
Allow UnityPrintFloat() to print a 7th digit.
2017-11-07 11:42:19 -05:00
jsalling
94a3008a9d
Update continuous integration to build 32-bit Unity
2017-09-21 21:24:41 -05:00
balaksh
cc909efed3
Implement optional printing of execution time for each test
2017-09-10 13:00:09 +12:00
Mark VanderVoord
7b2ad10c92
Merge pull request #285 from dpostorivo/gt_lt_asserts
...
Cleanup Greater than and Less than asserts from other PR (#264 ) (Thanks @dpostorivo and @Dommar92 !)
2017-09-08 13:27:22 -04:00
John Lindgren
dbdd168e46
Fix test link error.
2017-08-25 15:47:40 -04:00
John Lindgren
0e7eb545b9
Rewrite UnityPrintFloat to match printf("%.6g").
...
The existing implementation was not very good:
- It printed all very small values as "0.000000..."
- It did not distinguish positive and negative zero
- In some cases it printed extra garbage digits for single-precision values
(e.g. 3.9e+30 was printed as 3.90000013+30)
Tests have been updated to check that we now match printf("%.6g") for
1,000,000 randomly chosen values, except for rounding of the 6th digit.
2017-08-25 14:27:37 -04:00
Aviv Palivoda
ad373024f2
Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to tests rakefile_helper.rb
2017-08-04 14:40:34 +03:00
Aviv Palivoda
59182c4ea9
Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to tests Makefile defines
2017-08-01 22:56:52 +03:00
Dom Postorivo
f2fdf1a133
Added Greater than and Less than asserts from other PR
2017-05-13 15:59:51 -04:00
Mark VanderVoord
b8bfb01edf
Add support for AStyle in test makefile. It’s going to assume you have it installed.
2017-03-29 19:23:12 -04:00
Mark VanderVoord
2a5b24f7bf
Finished updating all Ruby scripts to match our coding standard. Woo!
2017-03-28 20:02:53 -04:00
Mark VanderVoord
3e0a7121fb
Started to flesh out rubocop settings for this project. Added rakefile tasks to do so. Updated first script to make it compliant.
2017-03-28 15:48:28 -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
d6b350874b
Clean up some const issues, particularly when moving between single and double pointers
2017-03-26 18:25:25 -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
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
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
jsalling
185fb49380
Cleanup example Makefiles, update test runners
...
Delete clang flags that were disabled with -Wno-*
2017-01-18 08:13:41 -06:00
jsalling
ef1e2ad58c
Option to exclude setjump/longjmp, setjmp.h
...
Using this option changes the control flow of Unity, but is useful on
constrained embedded systems. You can't fully simulate the power of
'longjmp' with just 'return', but Unity still works well, all tests pass.
2017-01-14 11:15:30 -06:00