Mark VanderVoord
671f8d25f1
Update all the boilerplates
2024-03-16 23:15:00 -04:00
Mark VanderVoord
860062d51b
Fixed issue #715 (typo that disabled two tests)
2024-03-09 19:36:15 -05:00
Mark VanderVoord
e3457a85f4
Fix temperamental test in core test suite.
2024-03-09 19:26:38 -05:00
Dennis Skinner
3adb5dd7b9
Add FALLTHRU
2023-12-04 14:04:13 -05:00
Dennis Skinner
049ddda615
Fix tests for new help verbiage
2023-12-03 23:02:09 -05:00
Dennis Skinner
985f6e0194
Add help option to test command line args
...
When test binaries are run with unknown options or with the standard
-h option, a help menu will print all available options.
This is much more convenient than having to dig through unity.c to
find every option.
2023-12-02 03:05:33 -05:00
Mark VanderVoord
3f7564ea3b
Catch up on Ruby style and formatting changes.
2023-11-12 19:07:32 -05:00
Mark VanderVoord
bd32847abf
Merge branch 'master' into platform_matrix
2023-11-08 00:16:40 -05:00
Mark VanderVoord
f9c4038341
Merge pull request #690 from ThrowTheSwitch/feature/updated-build-directives
...
Add/update build directives
2023-08-16 10:15:59 -04:00
Mike Karlesky
5109be3881
Missed renames of TEST_FILE() directive
2023-08-15 21:16:02 -04:00
Jon Hanghøj Henneberg
5baa4580ee
Fix file endings
2023-07-15 22:19:46 +02:00
Jon Hanghøj Henneberg
c97a2705b3
Add tests for TEST_MATRIX
2023-07-14 17:04:54 +02:00
Mark VanderVoord
a7639eeb54
Bump rubocop up to newer ruby versions (in progress)
2023-02-16 16:40:23 -05:00
Mark VanderVoord
5204c1bacf
Merge pull request #550 from jannisbaudisch/fix_test_parameterization_regex
...
Improve regex for test parameterization to support function pointers
2023-02-06 15:31:49 -05:00
Mark VanderVoord
5a36b197fb
Merge pull request #644 from AJIOB/implement_array_within_check
...
Adding within API support for float & double arrays
2022-12-29 19:43:58 -05:00
Mark VanderVoord
d0e3d73b7d
Merge pull request #640 from AJIOB/docs_param_tests
...
Create documentation for parameterized tests
2022-12-06 08:25:13 -05:00
AJIOB
b2360fa7ca
Adding delta infinity & nan checks & tests
2022-11-28 20:23:36 +03:00
AJIOB
9c45c7861b
Adding support for floating point arrays within.
...
Testing newly created API.
2022-11-28 18:28:31 +03:00
Alex Overchenko
ad86e15ca5
Adding docs to TEST_RANGE formats.
...
Adding parameterizedDemo tests as an independent file
2022-11-27 16:09:22 +03:00
Alex Overchenko
48d7210644
Fixing CI tests passing
2022-11-27 14:46:34 +03:00
Alex Overchenko
e4085eb8e6
Using default macro for TEST_CASEs define.
...
Improving docs about manual definition.
2022-11-27 14:36:22 +03:00
Alex Overchenko
4d5ed3d68b
Adding possibility for automatically defining
...
TEST_CASE & TEST_RANGE macros
2022-11-27 13:05:13 +03:00
Erik Flodin
563786f97c
Add support for TEST_RANGE with exclusive end
...
If the range is <start, end, step> instead of [start, end, step], the
end value will not be included in the range.
This can be useful if you have a define that defines e.g. the size of
something and you want to use this define as the end value. As the
pre-processor doesn't evalutate expressions (unless you do some macro
magic) you can't specify the range as [0, MY_SIZE - 1, 1]. With this
change you can then instead give the range <0, MY_SIZE, 1>.
2022-10-14 18:51:45 +02:00
Erik Flodin
76b7e359cc
Improve handling of space in TEST_CASE/RANGE
...
The fix in 285bb6e282 didn't completly fix the issue.
2022-10-13 22:13:03 +02:00
Martyn Jago
b44c2dd095
Fix broken YAML parsing on later Rubies with Psych >=4.0
...
YAML.load is now interpreted as YAML.safe_load, which breaks where the
YAML file contains aliases. If we can assume our yaml files are
trusted (since this a development tool), we can check for the presence
of YAML.unsafe_load and use it instead if it exists.
2022-05-27 15:08:11 +01:00
Mark VanderVoord
e54c9787b7
Merge pull request #560 from jonathangjertsen/more-float
...
Add macros for testing inequalities between floats, doubles
2022-05-25 11:04:56 -04:00
Mark VanderVoord
4389bab82e
Support option to specify array length of zero to force pointer comparison.
2022-04-19 17:27:31 -04:00
Mark VanderVoord
0df1d442cb
Rearrange details to always print if given, no matter if another msg added or not.
...
Print output on failures no matter if verbose or not.
Enforce that HEX comparisons are unsigned comparisons.
2022-04-19 16:21:04 -04:00
Jonathan Reichelt Gjertsen
b732fbf1ca
Add LESS_OR_EQUAL and GREATER_OR_EQUAL assertions for doubles and floats
2021-12-03 20:39:55 +01:00
Jonathan Reichelt Gjertsen
244edf6c16
Add NOT_EQUAL* and NOT_WITHIN* checks for floats and doubles
2021-12-03 19:53:31 +01:00
Jonathan Reichelt Gjertsen
410de1a02b
Add macros for testing inequalities between floats, doubles
2021-05-24 17:02:58 +02:00
Jannis Baudisch
77bd4f9943
Add test for function pointers in parameterized tests
2021-04-01 11:07:49 +02:00
Mark VanderVoord
fcab680286
Ruby script cleanup.
...
Fix warnings.
Remove 32-bit tests from standard suite because they're not running on most platforms.
2021-01-16 21:03:18 -05:00
John Lindgren
2485d49d13
Wrap UNITY_TEST_ASSERT in a do ... while(0) block
...
This ensures that constructions like the following work correctly:
if(condition)
TEST_ASSERT(a);
else
TEST_ASSERT(b);
2020-04-09 13:03:16 -04:00
mvandervoord
615cf2349e
Update self-test parameters
2020-03-19 09:48:40 -04:00
mvandervoord
3e4dfec147
Add support for alternate forms of header and source files to test runner generator. This borrows heavily from #477 (Thanks @Tuc-an) but maintains the ability to sort files that don't need to be relinked.
2020-03-17 14:02:54 -04:00
mvandervoord
75754de04e
more of the same.
2020-03-16 20:38:54 -04:00
mvandervoord
6e3ecbf92b
Declare the test variable static
2020-03-16 20:26:10 -04:00
mvandervoord
d7a05a56df
Working with very picky compilers. :)
2020-03-16 20:14:02 -04:00
mvandervoord
3ee46e3da3
Forgot EOL
2020-03-16 19:51:05 -04:00
mvandervoord
a58054b013
Update makefile to run tests. tweak broken tests.
2020-03-16 19:33:51 -04:00
mvandervoord
71e77ce6fb
Added NOT-EQUAL int variants.
...
Organized Unit Tests
2020-03-16 18:45:40 -04:00
mvandervoord
bad429428d
Add assertion for checking empty null-terminated arrays. This is particularly useful for check c strings.
2020-03-16 15:04:40 -04:00
mvandervoord
f3b87bb91c
another tweak to how we handle the ci vs local testing.
2019-12-15 14:36:59 -05:00
mvandervoord
e276e1a458
Swap order so that CI runs all the makefile tests... but local test:all skips them as mostly redundant and very platform specific.
2019-12-15 10:30:26 -05:00
mvandervoord
47b630391d
Minor tweak to the way we load includes
2019-12-15 10:07:05 -05:00
mvandervoord
fb45e3010b
the makefiles in the extras are in the test dirs.
2019-12-14 22:38:52 -05:00
mvandervoord
ef0cf704d9
Centralize all testing to the test folder instead of each subproject.
...
Trigger ALL tests when calling `rake test:all` instead of that being just the core tests.
2019-12-14 22:24:30 -05:00
mvandervoord
461c6b3978
Clean up ci tasks.
...
Get the files to use the build directory again.
2019-12-14 05:18:46 -05:00
mvandervoord
3f71d10b2e
Refactor all yaml files for self-tests to fit Ceedling format for wider reuse.
...
Fix mistake in unity selftest without output spy running.
Namespace self-tests for consistency across ThrowTheSwitch projects (like being able to test:all)
Reduce clutter of NAMED self-tests in task list.
2019-12-13 20:38:42 -05:00