ae8b98e80b
Merge pull request #496 from AlariOis/master
...
Fixed typos in documentation
2020-04-25 08:55:07 -04:00
ec31dfacad
Fixed typos in documentation
2020-04-25 07:14:21 +03:00
a2af08c773
project: revert UNITY_VERSION_* to unity.h
2020-04-14 11:02:24 +02:00
b397a72e89
cmake: get version from meson
2020-04-13 13:08:18 +02:00
2a2a4d19c5
meson: supports version
...
- generate version header
2020-04-13 12:47:07 +02:00
a78e6c8566
Merge pull request #494 from jlindgren90/master
...
Wrap UNITY_TEST_ASSERT in a do ... while(0) block
2020-04-09 16:10:46 -04:00
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
d603ccdc3b
cmake: update CMake
2020-04-09 13:58:45 +02:00
10fd84f02b
Merge pull request #492 from farshield/fix_small_typo
...
Fix small typo
2020-03-28 13:34:31 -04:00
ff479e9aa0
Fix small typo
2020-03-28 18:31:43 +01:00
87d8de6d55
Disable osx tests because (1) they are slow and (2) the toolchain is old and crusty
2020-03-19 10:02:38 -04:00
615cf2349e
Update self-test parameters
2020-03-19 09:48:40 -04:00
8c4ae7aacd
clarification in docs ( #468 )
2020-03-18 15:19:35 -04:00
2c3e75e859
Fixed issue #486
2020-03-17 20:38:11 -04:00
371e062555
Fixed issue #480 - better protection against bad pattern matching.
2020-03-17 16:24:25 -04:00
f61a7ea8e4
Fix Issue #479 (Thanks @cy18)
2020-03-17 16:12:08 -04:00
a67cb27dd4
Merge pull request #472 from jlindgren90/master
...
auto: Only create run_test() function if it's needed.
2020-03-17 15:35:47 -04:00
99199515fd
Update documentation.
...
Add UNITY_PRINT_TEST_CONTEXT (thanks @jlindgren90 !)
Replaces PR #473
2020-03-17 15:01:46 -04:00
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
75754de04e
more of the same.
2020-03-16 20:38:54 -04:00
6e3ecbf92b
Declare the test variable static
2020-03-16 20:26:10 -04:00
d7a05a56df
Working with very picky compilers. :)
2020-03-16 20:14:02 -04:00
6a86a83207
Merge pull request #487 from michaelbadcrumble/master
...
Cleaning Meson build support implementation.
2020-03-16 19:55:55 -04:00
3ee46e3da3
Forgot EOL
2020-03-16 19:51:05 -04:00
a58054b013
Update makefile to run tests. tweak broken tests.
2020-03-16 19:33:51 -04:00
71e77ce6fb
Added NOT-EQUAL int variants.
...
Organized Unit Tests
2020-03-16 18:45:40 -04:00
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
5e9acef74f
Merge pull request #488 from jvcdk/feature/test_printf
...
Feature/test printf
2020-02-18 10:02:41 -05:00
22a047ebb5
Updated documentation and examples to reflect the TEST_PRINTF function.
2020-02-14 22:45:58 +01:00
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
3b80ba73fe
add clang to CI file
2020-02-08 10:39:34 -08:00
8a3a31f7b3
clean up meson support
2020-02-08 10:30:43 -08:00
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
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
d0714178a8
Merge pull request #484 from mr-bat/patch-1
...
update copyright message
2020-01-27 13:05:29 +02:00
04858be38f
update copyright message
2020-01-26 11:22:07 -08:00
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
3b5b491860
sub in '_' for '-' in define and test name in module generator
2019-12-26 01:10:09 -05:00
e449210977
Merge pull request #475 from ThrowTheSwitch/refactor/self-test-cleanup
...
Refactor/self test cleanup
2019-12-15 14:49:27 -05:00
f3b87bb91c
another tweak to how we handle the ci vs local testing.
2019-12-15 14:36:59 -05:00
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
d271759bcd
Merge branch 'master' into refactor/self-test-cleanup
2019-12-15 10:10:44 -05:00
47b630391d
Minor tweak to the way we load includes
2019-12-15 10:07:05 -05:00
fb45e3010b
the makefiles in the extras are in the test dirs.
2019-12-14 22:38:52 -05:00
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
461c6b3978
Clean up ci tasks.
...
Get the files to use the build directory again.
2019-12-14 05:18:46 -05:00
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
f39c856a37
auto: Only create run_test() function if it's needed.
...
Also fix some whitespace consistency issues.
Use 2 newlines (not 1 or 3) before /*====Heading====*/ comments.
2019-12-12 12:53:49 -05:00
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
1d1de74153
Merge pull request #469 from LinoMastro/bug_fixes
...
Bug fixes
2019-12-09 06:39:13 -05:00