1251 Commits

Author SHA1 Message Date
cc36e0d82b Fix failed & ignored tests color parsing 2022-02-16 15:18:38 +03:00
5089be60e0 parse_output accepting all symbols now
Methods with their args can contain colons (':') now
2022-02-16 15:18:38 +03:00
e32809c529 Trying to fix errors of non-ASCII characters while parsing 2022-02-16 15:18:38 +03:00
474d201800 parse_output: test names can contain double-quoted string now 2022-02-16 15:18:38 +03:00
10d593d413 parse_output test_suite tag can be passed as arg now 2022-02-16 15:18:38 +03:00
2b725883f7 parse_output should parse color output now 2022-02-16 15:18:38 +03:00
fb225430b4 Merge pull request #597 from AJIOB/colors_fix
Unity color resetting was fixed for Gitlab CI (Thanks @AJIOB !)
2022-02-16 07:09:49 -05:00
db3398a5dd Unity color resetting was fixed for Gitlab CI.
Based on escape codes: https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
2022-02-16 14:56:00 +03:00
2ad5d74dc7 Fixes and features on the JUnit Python conversion script
* Added python3 shebang
* Renamed the script `unity_to_junit.py` as `stylize_as_junit.py`
  to match the Ruby file
* Fixed a bug on where the script failed if the first entry slot of
  each result line is empty. Now falls back to the result file name
* Rewrote the argument parsing to use argparse
* Added a `--output` / `-o` option, to match the Ruby file
2022-01-19 18:50:54 +01:00
c0e9a4c185 fixed hyperlink text to obtain Ruby
the text was correct but the hyperlink had a problem.
2021-12-10 10:16:45 +01:00
b732fbf1ca Add LESS_OR_EQUAL and GREATER_OR_EQUAL assertions for doubles and floats 2021-12-03 20:39:55 +01:00
2a8f3fe65a Try to fix C89 incompatibilities in UnityAssertGreaterOrLess(Double|Float) 2021-12-03 19:53:31 +01:00
244edf6c16 Add NOT_EQUAL* and NOT_WITHIN* checks for floats and doubles 2021-12-03 19:53:31 +01:00
5a3d82bda6 Merge branch 'master' into more-float 2021-12-03 18:23:22 +01:00
285bb6e282 Ignore space around parameter in TEST_CASE()
This makes it possible to use defines that expand to something that
includes space, e.g. TEST_CASE(true).
2021-12-03 17:35:51 +01:00
72ffe691cd Make TEST_RANGE handle a single range
Before this change a single range such as TEST_RANGE([5, 100, 5]) would
generate the following error:

undefined method `flatten' for 5:Integer (NoMethodError)

The problem is that reduce called on an array with a single element
returns that element which isn't an array of arrays as expected by the
following block.
2021-12-03 17:33:56 +01:00
8ba0138600 Merge pull request #544 from farrrb/bugfix/fix-issue-510
Bugfix/fix issue 510
2021-12-03 10:58:29 -05:00
93850fab40 Merge pull request #557 from erijo/unit-tests
Fix failing unit tests
2021-12-03 10:55:39 -05:00
5cdf81e263 Merge pull request #586 from igrr/unity_fixture_add_cpp_guards
extras/fixture: add missing C++ include guards
2021-12-03 08:14:45 -05:00
13e40e84ee extras/fixture: add missing C++ include guards
This fixes linking errors when test cases based on Unity fixture are
defined in a .cpp file.

unity_internals.h doesn't have C++ guards, and is included from
unity.h from within C++ header guard block. Same approach is taken in
this commit
2021-12-03 11:47:59 +01:00
b19370cc2b Merge pull request #579 from andresovela/patch-1
Fix typo in CMakeLists.txt
2021-09-20 08:11:08 -04:00
f98e2c868f Fix typo in CMakeLists.txt 2021-09-20 10:49:08 +02:00
d06ac64852 Merge remote-tracking branch 'upstream/master' into more-float
# Conflicts:
#	README.md
#	docs/UnityAssertionsReference.md
2021-07-27 01:54:26 +02:00
aeed24c78b Merge pull request #570 from DanieleNardi/ExternCedIncludes
Support for mixed C/C++ environment. (Thanks @DanieleNardi  !)
2021-07-15 08:46:17 -04:00
29617c7ecd Added -externcincludes option in order to build unit test executable in mixed C/C++ environment 2021-07-15 13:10:07 +02:00
2f7406572e Bump Version 2021-06-18 14:32:54 -04:00
e44c3b56f7 Adjust how decimal tracking handles to avoid warnings. 2021-06-03 08:51:24 -04:00
b63524d0fd Merge pull request #565 from wolf99/lint-markdown
Lint markdown (Thanks @wolf99 ! This is a great improvement!)
2021-06-03 07:16:18 -04:00
00a1d02835 Break on sentences instead of column 2021-06-02 23:48:23 +01:00
8b90b51c68 Reference style URLs 2021-06-02 23:13:14 +01:00
d0b5a920bb markdown conformance 2021-06-02 22:49:03 +01:00
1a681340de Merge pull request #564 from BAUR-GmbH/master
Use stdnoreturn.h for c11 and [[ noreturn ]] for c++11. Fixes #563
2021-06-02 11:42:32 -04:00
f944b08878 Use stdnoreturn.h for c11 and [[ noreturn ]] for c++11. ThrowTheSwitch#563 2021-06-02 16:56:14 +02:00
bd3c7dfd0d Merge pull request #562 from kisvegabor/patch-1
Fix typo in UnityHelperScriptsGuide.md (Thanks @kisvegabor !)
2021-06-02 09:52:45 -04:00
fa5644bd07 Fix typo in UnityHelperScriptsGuide.md
An `e` is missing in`suit_setup` in the `my_config.yml`.
2021-06-02 15:38:27 +02:00
7d37a8e11e Merge pull request #561 from druckdev/master
Support `UNITY_INCLUDE_EXEC_TIME` under Apples OSX
2021-05-31 11:04:01 -04:00
edfc5ae355 Support UNITY_INCLUDE_EXEC_TIME under Apples OSX
The unix way of getting the time works under OSX as well and can be
used.
2021-05-31 12:55:37 +02:00
410de1a02b Add macros for testing inequalities between floats, doubles 2021-05-24 17:02:58 +02:00
27ef0eb44e Fix some formatting errors in the assertions reference 2021-05-24 14:52:24 +02:00
dc96c3e6dd Fix strict-overflow compiler warning
By replacing "x < y + 1" with "x <= y" the compiler doesn't have to do
it and the warning "assuming signed overflow does not occur when
reducing constant in comparison [-Werror=strict-overflow]" is avoided.
2021-04-17 19:00:06 +02:00
8e1e9c18ab Fix ruby style warnings as reported by rubocop 2021-04-15 22:22:33 +02:00
63ea077a29 Add some docs for the Meson generator 2021-04-04 22:14:28 +08:00
31f5b47fc5 Add generator code to build file and make script executable 2021-04-04 01:54:43 +08:00
77bd4f9943 Add test for function pointers in parameterized tests 2021-04-01 11:07:49 +02:00
b51303a65b Improve regex for test parameterization to support function pointers
The regex to match function names for the test parameterization used the
wildcard '.*'. This lead to an error when you try to add a function
pointer as arguement.

The regex will now only match the word characters a-z A-Z 0-9 and
underscore (which are all characers that are accepted by the C standard)
2021-04-01 10:29:22 +02:00
4cfb39290a Refactor generator expressions for CMake 2021-02-27 11:14:43 +01:00
fa32e530ba Remove "error: assuming signed overflow does not occur when reducing constant in comparison [-Werror=strict-overflow]" 2021-02-27 10:49:34 +01:00
7edf9d9ac5 Fix #510 (-Wextra-semi-stmt with clang compiler) 2021-02-27 08:53:53 +01:00
61f4428435 Merge pull request #543 from farrrb/bugfix/fix-issue-531
Enable __attribute__ when __clang__ is definedgit
2021-02-26 13:01:42 -05:00
0168ea1541 Enable __attribute__ when __clang__ is definedgit 2021-02-26 18:46:27 +01:00