1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00
Commit Graph

1029 Commits

Author SHA1 Message Date
mvandervoord
d7a05a56df Working with very picky compilers. :) 2020-03-16 20:14:02 -04:00
Mark VanderVoord
6a86a83207 Merge pull request #487 from michaelbadcrumble/master
Cleaning Meson build support implementation.
2020-03-16 19:55:55 -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
Mark VanderVoord
5e9acef74f Merge pull request #488 from jvcdk/feature/test_printf
Feature/test printf
2020-02-18 10:02:41 -05:00
Jørn Villesen Christensen
22a047ebb5 Updated documentation and examples to reflect the TEST_PRINTF function. 2020-02-14 22:45:58 +01:00
Jørn Villesen Christensen
3da0b4652c Implement macro TEST_PRINTF: Works like TEST_MESSAGE, but with a format-string.
Depends on UnityPrintFormatted (define UNITY_INCLUDE_PRINT_FORMATTED).
UnityPrintFormatted has been renamed to UnityPrintF due to changes below.

API of UnityPrintFormatted has been changed (hence the rename), but end users
(developers) can use the TEST_PRINTF as an almost-drop-in replacement TEST_PRINTF
is compatible with the old UnityPrintFormatted API (see below).

The behaviour of UnityPrintF has also been changed:
  - Now it prefixes the outout with test location information Output is marked
    as INFO.
  - It adds an EOL.

Both behaviours adopted from other output functions.
2020-02-14 22:43:51 +01:00
Michael
3b80ba73fe add clang to CI file 2020-02-08 10:39:34 -08:00
Michael
8a3a31f7b3 clean up meson support 2020-02-08 10:30:43 -08:00
Mark VanderVoord
c101cfa7d2 Merge pull request #485 from korigod/test-range
Add TEST_RANGE to specify arg ranges in parameterized tests
2020-02-02 15:12:03 -05:00
Andrei Korigodskii
218fa2cbe8 Add TEST_RANGE to specify arg ranges in parameterized tests
TEST_RANGE([start, stop, step]) generates following runs of the test
function: test(start), test(start + step), ..., test(start + n * step),
where start + n * step <= stop. The step must be positive.

If the test function takes several arguments, the following syntax must be used:
TEST_RANGE([arg1_start, arg1_stop, arg1_step], ..., [argN_start, argN_stop, argN_step])

This addresses issues #53 and #144.

Reported-by: Alex Rodriguez <alejmrm@gmail.com>
Reported-by: Hiroaki Yamazoe <PastelParasol@gmail.com>
2020-02-02 22:28:21 +03:00
Mark VanderVoord
d0714178a8 Merge pull request #484 from mr-bat/patch-1
update copyright message
2020-01-27 13:05:29 +02:00
mr-bat
04858be38f update copyright message 2020-01-26 11:22:07 -08:00
Mark VanderVoord
622918a7df Merge pull request #476 from art-of-dom/module-char-scrub
sub in '_' for '-' in define and test name in module generator
2019-12-26 07:14:53 -05:00
Dom Postorivo
3b5b491860 sub in '_' for '-' in define and test name in module generator 2019-12-26 01:10:09 -05:00
Mark VanderVoord
e449210977 Merge pull request #475 from ThrowTheSwitch/refactor/self-test-cleanup
Refactor/self test cleanup
2019-12-15 14:49:27 -05: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
d271759bcd Merge branch 'master' into refactor/self-test-cleanup 2019-12-15 10:10:44 -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
Mark VanderVoord
5e3fb620fb Merge pull request #470 from LinoMastro/help_msg
Implement an -h/--help flag for Unity Fixtures and add documentation
2019-12-11 14:54:04 -05:00
Mark VanderVoord
1d1de74153 Merge pull request #469 from LinoMastro/bug_fixes
Bug fixes
2019-12-09 06:39:13 -05:00
Lino Mastrodomenico
5c5773720f Implement an -h/--help flag for Unity Fixtures and add documentation 2019-12-09 00:25:28 +00:00
Lino Mastrodomenico
e59185cd8d Fix another access outside array bounds. 2019-12-08 22:34:47 +00:00
Lino Mastrodomenico
86caf7ec97 Fix access outside array bounds. 2019-12-08 22:32:18 +00:00
mvandervoord
e3132cdddd Change the way we ignore the default runner. 2019-12-05 13:51:55 -05:00
mvandervoord
c5c36ab29f Do NOT include the default test runner if a custom runner has been defined.
Cleanup some style issues.
2019-12-05 13:19:43 -05:00
Mark VanderVoord
2f79302d5c Merge pull request #465 from michaelbadcrumble/meson_support
Keep Meson support back to 0.50.0:
2019-12-04 06:02:32 -05:00
Michael Brockus
de1cb75e4c Keep Meson support back to version 0.50.0 2019-12-03 22:49:22 -08:00
Michael Brockus
3fb17f33e2 Update root meson.build 2019-12-03 22:45:37 -08:00
mvandervoord
e2682ae43a update (commented out) example of using WEAK (which is not supported any longer) 2019-11-12 18:26:15 -05:00
mvandervoord
c3d7662a1e fixture example doesn't use memory extra v2.5.0 2019-10-30 10:05:49 -04:00
mvandervoord
ded22fef63 Make memory handling optional in fixtures 2019-10-30 09:50:22 -04:00
Mark VanderVoord
37a0f7184c Merge pull request #459 from elliot-gawthrop/combined_suite
Option to omit UnityBegin/UnityEnd calls in generate_test_runner
2019-10-30 09:33:18 -04:00
Mark VanderVoord
2aaf3c4504 Merge pull request #461 from jlindgren90/duplicate-branch
Remove exactly duplicated 'else if' branch
2019-10-30 09:31:14 -04:00
Mark VanderVoord
d34f72282f Merge pull request #463 from ThrowTheSwitch/refactor/split_mem_from_fixture
Refactor/split mem from fixture
2019-10-30 09:26:40 -04:00
mvandervoord
179b492e18 Sigh. had to NOT disable these warnings by default because the gcc on our test rig doesn't understand it 2019-10-30 09:00:53 -04:00
mvandervoord
5dd5931114 Try to keep compiler from complaining about this cast that we KNOW is okay. 2019-10-30 08:53:08 -04:00
mvandervoord
94dc637d03 While we're fixing warnings / errors, disable this (otherwise helpful) error because we are purposefully making this example file fail for this. 2019-10-30 08:48:08 -04:00
mvandervoord
e40b0bf2b5 Let's just go with it. Why fight the warnings when they could catch other issues? 2019-10-30 08:42:46 -04:00
mvandervoord
efd02920ca Fix path problem in Travis CI 2019-10-30 08:06:52 -04:00
mvandervoord
fbded74349 Split memory from fixtures and make it's own addon 2019-10-30 07:52:07 -04:00
Mark VanderVoord
3fb86421b2 Merge pull request #460 from jlindgren90/array-64
Fix TEST_ASSERT_HEX64_ARRAY_WITHIN truncating delta to 32 bits
2019-10-29 17:21:35 -04:00
John Lindgren
8072c5c946 Remove exactly duplicated 'else if' branch. 2019-10-29 17:10:45 -04:00