46 Commits

Author SHA1 Message Date
e83439528b Make life easier for those creating their own runners:
* Add UNITY_BEGIN and UNITY_END macros to simplify usage
* Improve RUN_TEST to make line_num optional where possible
2014-07-01 10:13:45 -04:00
bc251726b6 Add: Additional documentation for Unity configuration options. 2012-12-03 11:36:45 -06:00
5853e24e1a Added _MESSAGE versions of asserts for floating point specials. 2012-10-31 08:17:10 +00:00
b9b18bf547 Added new asserts to check for plus/minus infinity and NaN. 2012-10-30 17:08:43 +00:00
152e78a4a8 - cleaned up pointer support to handle arrays and to give error when you have an illegal configuration
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@135 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-05-14 15:52:52 +00:00
504bf2edee - fixed conditional self-tests
- rolled in DOUBLE support from Mark Vismer (thanks!)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@134 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-05-03 11:05:56 +00:00
44fa5bef55 - removed TEST_CASE(...) macro from Unity because it's not compatible with a number of compilers. User will need to define it themselves to use it. (it's an empty define anyway)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@117 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-02-04 19:50:49 +00:00
6787ada5ad - NOTE: now you need to define UNITY_SUPPORT_TEST_CASES to use TEST_CASE. This is to avoid problems with compilers that don't support varargs in macros.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@116 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-24 12:57:50 +00:00
780c17d017 - updated unity test runner generator to support parameterized tests optionally.
- updated docs to better discuss generator options.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@104 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-26 19:37:22 +00:00
f2ce354f99 - cleaned up test runner problems. again getting ready to support parameterized tests
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@103 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 16:15:09 +00:00
7ecafcbe5c - revert last change until I figure out what I screwed up
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@102 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 15:35:57 +00:00
953b55c7e3 - made RUN_TEST so that it doesn't require a custom runTest by default
- updated generator to lay simple foundation for parameterized test support

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@101 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 14:53:34 +00:00
8177f62867 made unity internally consistent with fail and ignore macros having/not having message parameters
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@87 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-30 22:39:52 +00:00
0cd87b0a2e - fixed a silly mistake where TEST_IGNORE was accepting a message argument when only TEST_IGNORE_MESSAGE should have been
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@86 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-30 11:41:20 +00:00
a9ccd245b0 - added 64 bit support
- organized targets into a subdirectory
- cleaned up testing so floats and 64-bit ints are only tested if enabled


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@85 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-28 01:06:21 +00:00
9909bfe235 robustified null pointer handling for array handling
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@78 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 04:45:31 +00:00
cae66a0054 - added special handlers for int and uint types for when it's important that you have the right size (like INT8_ARRAY)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@75 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-09 01:36:55 +00:00
c3f5b23660 - added string array support
- laid foundation for smarter array size handling for integer types

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@74 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-06 23:24:36 +00:00
32f317f6c0 Fixed typo in TEST_ASSERT_NOT_EQUAL macro message
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@72 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-05-25 18:11:11 +00:00
789e248a57 - just cleaned a couple of comments
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@71 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-05-17 23:52:52 +00:00
3fbc034e7d - restored examples to working condition
- restored makefiles to working condition
- updated files to include copyright notice
- fixed bug in string array comparisons
- ignored tests no longer run teardown
- tests failing for uncaught cexceptions now get exception id reported

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@70 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-26 01:10:48 +00:00
54a924571b - updated color handling by standardizing output
- cleaned up internal types
- added verbose float support when sprintf is available and desirable
- tested float array handling (and fixed a bug! woo!)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@68 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-02 18:11:07 +00:00
4fc9cf594a - added array handling for smaller integer types
- added array handling for floats
- cleaned up filename handling in scripts

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@67 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-30 03:34:09 +00:00
3a2595ceb6 - added accessor to line number
- tweaked reporting colors

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@66 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-24 01:06:07 +00:00
e189a1b332 - cleaned up Unity header file
- added macros to support more combinations
- shrunk code size by reducing functions and macro sizes

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@62 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-20 20:58:46 +00:00
5e75c90c89 - standardized output format for test results
- added color coding to output

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@58 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-10 03:10:41 +00:00
91de19e504 - added message support to NULL macros
- tweaked runner generator to use symbols for cexception like everything else.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@56 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-08 13:31:11 +00:00
836ae000d0 - fixed casting mistake in array handling
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@51 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-29 20:52:15 +00:00
b6817999c1 - make floating point support optional and configurable
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@48 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-06 18:56:35 +00:00
a4923232ee tightened up pointer handling in UnityAssertEqualMemoryArray to satisfy stricter compilers
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@46 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-11-03 15:52:54 +00:00
6901c8eb04 - added an "equal" check for floating point (where it checks that floats are within a significant digit of eachother)
- added array support for unknown types (memcompares)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@45 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-11-03 01:15:54 +00:00
f5e2adcfdd added meaningful failure statements to TEST_ASSERT_TRUE & TEST_ASSERT_FALSE instead of blank
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@44 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-10-16 14:38:34 +00:00
15514e7993 added missing 'message' params in _MESSAGE macros; added TEST_ASSERT_NOT_EQUAL
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@43 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-10-08 16:10:43 +00:00
71b4f95a0a Cleaned up typedefs for micro integer width configuration.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@42 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 15:59:48 +00:00
812a71e983 Modified typedefs in order to avoid collisions
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@41 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 03:16:38 +00:00
cb1212f9e2 Added support for 16-bit processors via BUS_WIDTH=16 preprocessor define. Defaults to 32-bit if unspecified.
Updated iar_msp430.yml to use full IAR MSP430 edition and use new BUS-WIDTH define.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@40 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-31 01:33:47 +00:00
a395675cb5 Added void keyword to empty parameter list to avoid getting warnings or errors from picky compilers.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@32 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-08 16:32:39 +00:00
54eba93094 - support arrays of integers
- fixed bug when reporting problems with large integers
- fixed bug in test suite when checking for expected failures.


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@22 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-04-10 18:21:21 +00:00
68decf8b34 standardized pointer notation; did a bit of janitorial work on Unity struct
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@17 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-19 06:43:19 +00:00
24a56b0c38 - happier with const (and more optimized on some compilers)
- better helper examples
- general purpose memory compare

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@16 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-19 03:30:45 +00:00
62ed500b11 * update unity and helper to make names more consistent and to strictly make const interfaces.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@14 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-02-11 18:43:48 +00:00
12289c3f52 * Updated frame to not require separate pointer initialization
* Updated test runner to protect teardown (just in case someone tries to put ASSERTS in their teardown function)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@13 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-01-26 15:16:38 +00:00
6e2de5e52f * Converted Unity to use setjmp/jongjmp for aborting upon test failures
* Eliminated TEST_WRAP and TEST_WRAP_NO_RETURN, since new abort mechanism eliminates the need to use these
- Updated documentation
- Changed default target to GCC in both Unity test and example project

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@7 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-11-13 15:39:50 +00:00
158b172fd5 Fixed parameter mismatch bug in TEST_ASSERT_EQUAL_HEX() macro.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@3 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-06-11 21:57:59 +00:00
f39f8a7701 Updated makefile to run tests after building and added :clean and :all tasks.
Added UnityHelper module in order to show how to extend Unity.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@2 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-05-11 19:30:41 +00:00
720acfbb95 Initial project population
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@1 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2008-02-07 03:00:54 +00:00