764 Commits

Author SHA1 Message Date
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
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
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
2593c31bb7 Allow suiteSetUp() and suiteTearDown() to be provided as normal C functions.
This is simpler and more flexible than embedding C code in the Ruby options
(:suite_setup and :suite_teardown).  However, support for :suite_setup and
:suite_teardown is kept for backwards compatibility.

Several configurations are possible:
1. :suite_setup and :suite_teardown options provided and used.
2. :suite_setup and :suite_teardown options not provided (nil):
  2a. Weak symbols not supported; suiteSetUp() and suiteTearDown() are not called.
      It would be simpler to make user-provided functions mandatory in this case,
      but it could break some pre-existing test suites.
  2b. Weak symbols are supported and the stub implementations of suiteSetUp() and
      suiteTearDown() are called if there are no user-provided functions.
  2c. Weak symbols are supported but overridden by user-provided suiteSetUp() and
      suiteTearDown() functions.
2017-09-13 18:12:23 -04:00
60def109a7 Update configuration docs 2017-09-13 09:39:52 -04:00
60b13f0685 Bump version in preparation of release. v2.4.2 2017-09-11 15:43:17 -04:00
f278c18fd9 Fix bug #288 - invalid line numbers on partial name matches 2017-09-11 15:39:17 -04:00
bdd4cb19d6 Merge pull request #294 from jlindgren90/master
Fix compiler warning due to reusing symbol 'exp'.
2017-09-11 10:48:36 -04:00
fcd4883c5e Fix compiler warning due to reusing symbol 'exp'. 2017-09-11 10:06:04 -04:00
05daf95d4e Update to match Ruby style guide 2017-09-08 15:37:31 -04:00
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
0547aab67e Merge pull request #291 from jlindgren90/master
Rewrite UnityPrintFloat to match printf("%.6g").
2017-08-25 16:59:45 -04:00
2ae2bdb376 Make code C89-compliant. 2017-08-25 15:52:06 -04:00
dbdd168e46 Fix test link error. 2017-08-25 15:47:40 -04:00
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
a868b2eb73 Merge pull request #286 from palaviv/fix-UNITY_OUTPUT_FLUSH
Allow specifying custom header declaration (Thanks!)
2017-08-04 08:56:35 -04:00
e56378e437 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to fixture tests rakefile_helper.rb 2017-08-04 14:43:14 +03:00
ad373024f2 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to tests rakefile_helper.rb 2017-08-04 14:40:34 +03:00
b3de931d69 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to fixture tests Makefile defines 2017-08-01 23:36:13 +03:00
59182c4ea9 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to tests Makefile defines 2017-08-01 22:56:52 +03:00
a07d07cd1a Allow specifying custom header declaration
The user can specify UNITY_OUTPUT_CHAR_HEADER_DECLARATION and
UNITY_OUTPUT_FLUSH_HEADER_DECLARATION when he would like to declare
UNITY_OUTPUT_CHAT or UNITY_OUTPUT_FLUSH respectivly
2017-08-01 22:43:58 +03:00
c1bc32dc58 - Generator will not change names by default
- Fixed some style issues.
2017-06-25 13:58:31 -04:00
f2fdf1a133 Added Greater than and Less than asserts from other PR 2017-05-13 15:59:51 -04:00
3b69beaa58 Merge pull request #284 from rmja/patch-1
Fixed UNITY_TEST_ASSERT_EACH_EQUAL_*
2017-05-10 08:56:49 -04:00