886 Commits

Author SHA1 Message Date
199b13c099 Merge pull request #332 from trond-snekvik/mock_suffix_support
Add support for :mock_suffix
2018-06-07 06:49:28 -04:00
ceecf1fae8 Add support for :mock_suffix
Adds support for :mock_suffix when generating mock setup and teardown
functions. Also documents both prefix and suffix in the helper script
guide.
2018-06-07 10:06:43 +02:00
d915bf7ae5 Merge pull request #324 from farrrb/origin/fix-UNITY_OUTPUT_FLUSH
Re: Fix custom UNITY_OUTPUT_FLUSH and add tests #287
2018-05-03 07:32:17 -04:00
e2ee98e3d6 Merge pull request #325 from farrrb/fix-parse.rb
Bugfixes and refactoring in parse.rb (thanks @farrrb and @jeremyhannon )
2018-05-03 07:25:16 -04:00
38e1ee872c Added some useful documentation which states the output formats that are parseable by this script. 2018-02-27 07:23:18 +01:00
1994bf9d68 Fixed unity fixture output and added methods for each of the different outputs. Added documentation.
Fixed some whitespaces.
Refactored class_name to class_name_idx (expressiveness).
Refactored the xml output to methods (extensibility).
2018-02-26 22:23:11 +01:00
7a43766586 - Fixed whitespaces and formatting
- Added more expressiveness to the code
- Fixed some of the rubocop hints
2018-02-22 21:47:21 +01:00
ea51e2b35c Refactored the os specific settings, it is now possible to convert both styles on every system (and even mixed) 2018-02-22 21:23:29 +01:00
0937bf728c - Removed member variable @test_flag
- Fixed stdout output if fixture is active
- Refactored the state manipulation of @test_suite and moved it completely into test_suite_verify()
2018-02-22 19:55:40 +01:00
e038ae2ade Refactored the test evaluation of the flushSpy 2018-02-18 18:44:58 +01:00
436a46d8ef Got the tests running 2018-02-18 17:43:08 +01:00
2480a6124e Added unit test for the call to flush 2018-02-18 17:08:49 +01:00
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
37271e8a13 Fixed copy and paste error 2018-02-18 14:53:39 +01:00
25804f3ab4 Added flushSpy and the respective helper functions 2018-02-18 14:46:42 +01:00
456759296b Added flushSpy 2018-02-18 14:23:26 +01:00
fe950b9fa3 Makefile preparations 2018-02-18 14:11:19 +01:00
8efa8ffc62 Removed UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION to simplify the behaviour 2018-02-18 13:57:34 +01:00
d9cd6988f3 Merge pull request #319 from farrrb/master
Some minor changes for parse_output.rb (Thanks @farrrb  and @jeremyhannon !)
2018-02-15 07:49:20 -05:00
4dfb512a27 Added ".to_s" to the test suite name (explicit type conversion) 2018-02-12 06:44:26 +01:00
7a1157d6f6 Merge pull request #322 from jeremyhannon/misra19.10_v2
MISRA 19.10: surround each macro param with parens.
2018-02-11 08:25:13 -05:00
dc9c7a7b4b Removed leading whitespace 2018-02-11 13:02:26 +01:00
9bada282f4 MISRA 19.10: parentheses around macro params
MISRA 2004 rule 19.10: inside macros, surround each parameter usage with parentheses.
2018-02-10 14:27:03 -06:00
a6b925a01f Merge pull request #321 from jeremyhannon/misra19.10
MISRA - param names match; macro params in parens
2018-02-10 14:22:58 -05:00
91a2353526 MISRA 16.4: param names match func decl & defn
parameter names should match between declaration and definition.
(MISRA 2004 rule 16.4)
2018-02-10 13:15:34 -06:00
0760230829 Some minor changes
- String split now works correctly for windows and unix (cross platform)
- Removed unnecessary whitespaces in the xml output (beautifies the output)
- Added support for TEST_IGNORE() (without message)
2018-01-29 21:00:46 +01:00
b4aca70fd9 Update UnityGettingStartedGuide.md
Added more detail on test naming.
2017-12-06 10:08:56 -05:00
62f6cb247a Merge pull request #312 from shreyasbharath/master_fix_integer_underflow
Fix unsigned integer underflow in UnityAssertEqualIntArray (Thanks @shreyasbharath )
2017-11-27 06:50:49 -05:00
4325773e76 Fix unsigned integer underflow in UnityAssertEqualIntArray 2017-11-23 14:59:00 +13:00
29803b65ac Merge pull request #310 from flowher/setjmp_optional
Test runner generation: Wrap setjmp.h inclusion in ifdefs. (Thanks @flowher !)
2017-11-20 06:31:34 -05:00
53f0f95ef8 Test runner generation: Wrap setjmp.h inclusion in ifdefs
Auto generated test runner should generate a code  which includes
setjmp.h only if UNITY_EXCLUDE_SETJMP_H is not defined
2017-11-20 09:46:30 +00:00
287e076962 Post release v2.4.3 2017-11-14 16:26:16 -05:00
a6d3f3a59a Restore round-to-even behavior. 2017-11-07 23:25:27 -05:00
2d4e32cda1 Print 9 digits if we have double precision capability. 2017-11-07 22:44:59 -05:00
74ba70283a Improve accuracy of UnityPrintFloat() for common cases. 2017-11-07 11:42:19 -05:00
8ff74d6000 Allow UnityPrintFloat() to print a 7th digit. 2017-11-07 11:42:19 -05:00
774da10e00 Merge pull request #296 from jlindgren90/master
Allow suiteSetUp() and suiteTearDown() to be provided as normal C functions (Thanks @jlindgren90 )
2017-11-04 09:04:53 -04:00
629b86d541 Merge unity_setup.h into unity.h. 2017-11-01 11:36:26 -04:00
0914d80121 Merge pull request #308 from codehearts/patch-1
Fix missing TEST_ASSERT_EACH_EQUAL_HEX_MESSAGE -- Thanks @codehearts !
2017-10-30 21:00:47 -04:00
5ee55fefda Fix missing TEST_ASSERT_EACH_EQUAL_HEX_MESSAGE 2017-10-30 17:44:32 -07:00
38c387b76f Merge pull request #304 from VLambret/master
Color test results using ANSI escape codes (Thanks for the work, @VLambret !)
2017-10-24 15:08:50 -04:00
17d4ea92e1 Color test results using ANSI escape codes
Help error detection by adding specific colors for test results. This
behavior is activated only when unity if compiled with UNITY_COLOR flag.
2017-10-24 07:33:30 +02:00
031b1ba469 Merge pull request #300 from jsalling/bugfix/greater-than
Bugfix greater/less than asserts with unsigned int. (Thanks @jsalling! I can't express what a GREAT job you did with this.)
2017-10-19 16:17:43 -04:00
df78aade4b Make weak symbol usage more portable:
- Enable support for Green Hills Software compiler
- Define weak implementations only once except on Windows
2017-10-09 11:39:48 -04:00
a7e8797e0c Fix link errors with MinGW.
MinGW supports a limited form of weak symbols, with the restriction
that weak/default implementations need to be defined in the same
translation unit they are called from.  Strong/overriding symbols
may of course be specified in a different translation unit.
2017-10-09 10:49:58 -04:00
94a3008a9d Update continuous integration to build 32-bit Unity 2017-09-21 21:24:41 -05:00
b119919c4f Add 64-bit comparison asserts 2017-09-20 18:26:17 -05:00
91bcbe186d Add 'greater/less or equal to' asserts on integers
Make all comparison operators on integers available
2017-09-20 18:24:23 -05:00
8caade7e68 Fix bug in greater/less than asserts on unsigned int
Check for unsigned types, add 'or equal to' support
 Consolidate to one function to remove repeated code
2017-09-20 18:13:12 -05:00
1381a1a4cb Update documentation. 2017-09-13 18:24:07 -04:00