jsalling
f75f489b6e
Get rid of magic numbers and strlen call for 'end' string in Fixture
...
Using sizeof() instead of constant 4, makes code less fragile to change
Change name of 'guard' in Guard struct to 'guard_space'
2015-12-15 12:05:38 -06:00
Mark VanderVoord
9aeaee26c9
- Cleaned up UnitPointer_Set (thanks Eric)
...
- Cleaned up a casting warning error
- Removed a couple semicolons from the end of macros SHAME!
2015-12-07 21:41:44 -05:00
jsalling
de7cf8335e
Transform plain macro into a function macro, UNITY_PRINT_EOL()
...
This helps clarity and is more obvious, it looks like a print function
2015-11-23 21:03:46 -06:00
jsalling
d4353166d2
Replace all hard-coded '\n' with UNITY_PRINT_EOL macro in fixture
...
Delete the { ;} braces and semicolon from UNITY_PRINT_EOL to give it expected
behavior: 1) requires a semicolon 2) works in one-liner if-else statements
If you need "\r\n" for EOL, define as the following to get the same behavior:
do{UNITY_OUTPUT_CHAR('\r'); UNITY_OUTPUT_CHAR('\n');}while(0)
2015-11-23 17:09:30 -06:00
Gergely Nagy
1affe544d2
unity_fixture: Make unity_free() NULL-safe
...
At the start of unity_free(), check mem for NULL, and return immediately
if it is, so we don't crash in this case. This mimics the behaviour of
most free() implementations. Closes #135 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org >
2015-10-06 10:44:44 +02:00
Mark VanderVoord
6f119a8ebd
Merge pull request #122 from trianglee/get_tests_counts
...
Added ability to get number of ignored tests and total number of tests.
2015-07-14 16:45:55 -04:00
Nimrod Zimerman
8a5e7cce24
Added ability to get number of ignored tests and total number of tests.
2015-07-14 19:49:09 +03:00
Nimrod Zimerman
9e9adc050c
Bug fix - ignored tests were incorrectly counted when not selected for running.
...
Ignored tests are now correctly skipped if not selected by test name or
by group name.
2015-07-14 19:29:16 +03:00
Andrew Burks
7737fee444
Fixes #116 : Allow overrides of the Unity Fixture's memory functions. This enables custom heap implementations to be used with the Unity Fixture.
2015-06-30 15:32:57 -07:00
ThingamaByte, LLC
77af37add0
- catch optional fixtures plugin up to mainline unity (somewhat. like fixing line endings)
2015-06-18 17:16:01 -04:00
@gageas
975e222aae
Move announceTestRun() after UnityBegin()
2015-02-03 00:19:30 +09:00
@gageas
1c5986bd30
undef defined callc/realloc macros
2015-02-02 23:57:07 +09:00
nimrodz
b389c71e71
Added stricter error checks by the compiler, and adapted all impacted code.
...
Primarily -
* Added "static" to static functions.
* Added proper signature with "void" to functions without arguments.
* Marked unused arguments with "(void)".
* Removed entirely unused static functions.
* Added "const" to preserve const-correctness.
* Added function prototypes for external functions.
2015-01-18 00:39:05 +02:00
kotofos
1aeb4468af
putchar warning
2014-12-03 11:51:58 +06:00
Mark VanderVoord
376480a4d9
make fixtures and examples compatible with new UnityBegin method.
2014-08-16 10:51:25 -04:00
toybuilder
bb729bdc3e
fix parameter type for runAllTests to match header
...
At least in Microchip XC8 compiler, void (*runAllTests)(void) is treated as a different type from void (*runAllTests)().
Fix the definition of UnityMain to match the declaration by making the runAllTests's (void) parameter list explicit.
2014-03-13 05:58:39 -07:00
James Hood
5e401afa83
updating CLI for unity_fixture.h to handle unknown command line arguments (instead of entering an infinite loop)
2013-03-04 14:35:18 -06:00
Bryan A. Jones
146dfa3b2d
Fix: Corrected type of size in GuardBytes to be size_t, not int.
2013-01-09 09:54:29 -06:00
Dennis Lambe Jr
47bf32edd6
Made unity_fixture IGNORE_TEST() respect the -v verbose flag.
...
More details here: http://forums.pragprog.com/forums/123/topics/10126
2012-12-21 16:07:49 -05:00
Dennis Lambe Jr
e21881c53f
Fixed a unity_fixture bug that prevented IGNORE_TEST from properly counting ignored tests.
...
More details here: http://forums.pragprog.com/forums/123/topics/10126
2012-12-21 16:00:11 -05:00
Dennis Lambe Jr
601459a5c2
Fixed compilation warning in unity_fixture.c with optimization on.
...
More details here: http://forums.pragprog.com/forums/123/topics/10901
2012-12-21 15:32:29 -05:00
mvandervoord
97000e0104
- make test runner handle spaces and dashes in file names
2012-11-25 15:52:27 -05:00
mvandervoord
d0d5ec5d75
- unity_test_summary script callable from command line again
...
- fixed obj_file sorting in rakefiles
- gave better anchors for gcc to grab on test pass/fail by breaking them out as functions
- fixed minor type issues
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@137 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-01-02 21:38:36 +00:00
mvandervoord
3d61357343
- updated fixture to match James' suggestions.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@124 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-03-09 02:05:05 +00:00
mvandervoord
e067b442a3
- updates to fixture in extras (submitted by James Grenning)
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@111 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-04 20:08:32 +00:00
mvandervoord
5a6b8c405b
- added a tweaked version of James Grenning's unity_fixture to extras
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@106 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-29 22:53:57 +00:00