886 Commits

Author SHA1 Message Date
01a907393a silent mode in unity fixture 2019-05-04 11:52:36 -04:00
197bf351ae Merge pull request #347 from kykrueger/issue-#346-documentation-improvement
Issue #346 documentation improvement
2019-05-04 08:13:21 -04:00
e9f9638497 Merge branch 'master' into issue-#346-documentation-improvement 2019-05-04 08:13:14 -04:00
071044bdd6 Merge pull request #349 from kykrueger/issue-#348-generalize-example-3-gcc-config
Issue #348 generalize example 3 gcc config
2019-05-04 08:11:04 -04:00
d70047881e Merge pull request #377 from elliot-gawthrop/execution-time-embedded
Execution time improvements
2019-05-04 07:53:37 -04:00
2697770ae9 Merge pull request #379 from elliot-gawthrop/auto-runner-args
Redefine name of resetTest in generated runner
2019-05-04 07:51:40 -04:00
6a1c0590a9 Merge pull request #389 from squidfarts/master
Generic CMake script.
2019-05-04 07:50:54 -04:00
fc7317f103 Merge pull request #399 from frot/master
Allow multi line test-function definitions.
2019-05-04 07:49:56 -04:00
94446cdb5e Merge pull request #404 from farrrb/fix-nibbles-UnityPrintNumberHex
Fixed maximum number of nibbles for processor where sizeof() operator…
2019-05-04 07:39:59 -04:00
2b0d093837 Merge pull request #403 from farrrb/fix-issue-392
Used sizeof operator for pointer increments in UnityAssertEqualIntArray().
2019-05-04 07:39:22 -04:00
25c15f632e Merge pull request #410 from art-of-dom/test-cleanup-gt-lt
Add tests for GREATER_OR_EQUAL, LESS_OR_EQUAL, LESS_THAN, and GREATER_THAN
2019-05-04 07:32:52 -04:00
7514de0582 Merge branch 'master' into test-cleanup-gt-lt 2019-05-04 07:28:12 -04:00
93fbc3fbd0 Merge pull request #412 from art-of-dom/array-within
TEST_ASSERT_INT_ARRAY_WITHIN in unity
2019-04-20 15:31:58 -04:00
9340582797 ARRAY_WITHIN in unity 2019-04-20 14:10:56 -04:00
89465c88b0 Add tests for GREATER_OR_EQUAL, LESS_OR_EQUAL, LESS_THAN, and GREATER_THAN 2019-04-14 15:59:40 -04:00
f51e658e8a Merge pull request #409 from art-of-dom/unity_fixture_colour_fix
Use Pass string from unity.c in unity_fixture.c to garuntee colour behavior
2019-04-13 14:57:28 -04:00
480d505cd7 Merge pull request #408 from art-of-dom/str-cmp-tests
Expliticly show test failures of unequal strings
2019-04-13 14:53:27 -04:00
0bd6bf7b2b Use Pass string from unity.c in unity_fixture.c to garuntee colour behavior 2019-04-13 14:29:06 -04:00
f69fbe8a95 expliticly show test failures of unequal strings 2019-04-13 11:53:14 -04:00
d01e32299e Used sizeof() operator for pointer increments and substituted sizeof() operator for the unsigned int mask calculation to "UNITY_INT_WIDTH / 8" in function "UnityAssertEqualIntArray". 2019-04-07 18:34:25 +02:00
52ff8613a2 Fixed maximum number of nibbles for processor where sizeof() operator doesn't return the size of a type in 8-bit bytes (e.g. the TI C2000 series). 2019-04-07 12:09:00 +02:00
2191b2ba8e Allow multi line test-function definitions. 2019-04-04 09:51:37 +02:00
8507757c6a Merge pull request #401 from ty93/master
unity_test_summary.py recursive search for test files
2019-03-26 16:33:17 -04:00
aecc642594 recursive search for target test files in test summary python script 2019-03-26 17:32:30 +02:00
2663cb9d0d Merge pull request #400 from art-of-dom/travis-fix
Fix travis config: Use ruby 2.3
2019-03-25 11:37:26 -04:00
6315c4c4c3 Fix travis config 2019-03-23 20:09:56 -04:00
49ffac33ec Merge pull request #397 from AlexanderBrevig/fix_unary_minus_on_unsigned_warning
use unary minus on the incoming int instead of the casted uint
2019-03-11 22:35:02 -04:00
0dafa0b306 use unary minus on the incoming int instead of the casted uint 2019-03-12 00:17:37 +01:00
a78c799701 Merge pull request #391 from detly/master
Removed leading underscore from module generator header guards. (Thanks @detly !)
2019-02-21 17:07:10 -05:00
ead95b3ab8 Removed leading underscore from module generator header guards. 2019-02-22 08:38:29 +11:00
3e4d064c42 Singing my name on the script. 2019-02-19 09:45:50 -08:00
9dc7cb1b5c Adding CMake script to unity test framework. 2019-02-18 12:35:53 -08:00
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
145691519b Add ability to override name of the 'resetTest' function
This allows multiple groups to be compiled into the same executable by naming each function uniquely.
2019-01-31 21:59:58 +00:00
9ef1088eb7 Merge pull request #387 from farrrb/rework-operator-precedence
Added braces to avoid implementation solely based on operator precedence. (Thanks @farrrb ! I love cleanup like this!)
2019-01-30 15:48:50 -05:00
b723c9f250 Added braces to avoid implementation solely based on operator precedence. 2019-01-30 21:26:35 +01:00
d451148907 Merge pull request #386 from teaguecl/teaguecl_example1_bugfix
Fix error in example_1
2019-01-26 07:45:55 -05:00
bc2ab233ee Fix error in example_1 and example_2
This test case had an error in both examples:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode

It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
2019-01-25 21:51:25 -08:00
9d1ffe26d6 Fix error in example_1
This test case had an error:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
which is a value in the list.

The compile option -Wno-misleading-indentation was also added to
remove a compiler warning produced by gcc 7.3.0
2019-01-25 21:22:55 -08:00
38c48704c5 Merge pull request #383 from farrrb/feature-printf
Feature printf (Thanks @farrrb !)
2019-01-25 06:09:20 -05:00
a6e9f85f71 Added examples for the configuration of UnityPrintFormatted and exclusion of <stddef.h> 2019-01-25 07:01:29 +01:00
69cebb5c30 Merge pull request #385 from bluca/c90
Make unity.c compatible with c90
2019-01-24 16:48:07 -05:00
5074a3d8b2 Make unity.c compatible with c90
Avoid declaring the loop variable inside the for statement to keep
compatibility with c90:

unity.c:1408: error: for' loop initial declaration used outside C99 mode
2019-01-24 21:44:34 +00:00
92a345b264 Added documentation and changed all the code examples to backtick (code) blocks. 2019-01-24 20:12:16 +01:00
4f8656f658 Added some documentation for the helper function. 2019-01-24 19:22:01 +01:00
95ccc6edc1 Changed the compiler switch behaviour for printf (default: disabled).
Macro UNITY_EXCLUDE_PRINT_FORMATTED changed to UNITY_INCLUDE_PRINT_FORMATTED.
Enable printf via "-DUNITY_INCLUDE_PRINT_FORMATTED" compiler option.
2019-01-24 18:42:51 +01:00
5918ee0cdf Merge branch 'master' into feature-printf
# Conflicts:
#	src/unity.c
2019-01-24 18:32:07 +01:00
a284984365 Merge pull request #382 from dpostorivo/ifndef-64-runner
Generate runner defines with #ifndef guards
2018-12-21 23:12:59 -05:00
516f7be045 generate runner defines with #ifndef guards 2018-12-21 22:37:11 -05:00
38d8263741 Merge pull request #380 from elliot-gawthrop/test-case-string
Add support for strings in TEST_CASE()
2018-12-11 06:56:47 -05:00