mvandervoord
fe4ce4166c
- updating docs to match latest assertions and config options
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@81 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-02 19:48:59 +00:00
mvandervoord
a867d1f6bf
- fixed some formatting
...
- added a cast to reduce warnings
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@80 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 19:16:48 +00:00
mvandervoord
b8007051b1
- All array asserts now check for NULLs properly and uniformly
...
- Cleaned up testing
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@79 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 16:42:57 +00:00
mkarlesky
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
mkarlesky
2b881e22d8
(1.) removed errant '.' from memory mismatch string (2.) made string asserts more verbose for NULL string pointers (3.) modified UnityPrint to display unprintable characters as codes
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@77 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-24 02:23:56 +00:00
mvandervoord
f4e7261b9f
- tweaked regex to better scan headers (thanks mjaygo!)
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@76 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-23 14:28:31 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
f492adfec4
- throw errors in example runner
...
- make unity optional in test runner generator (though that's not really too helpful at the moment)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@73 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-06 16:59:00 +00:00
greg-williams
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
mvandervoord
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
mvandervoord
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
mvandervoord
12d4d14388
- fixed floating point comparison
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@69 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-18 23:25:32 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
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
mvandervoord
b10a094214
- centralized pretty printing so people can use it more easily
...
- updated unity helper examples to get them working again
- got examples running again
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@65 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-21 02:53:17 +00:00
mvandervoord
07d2848dd4
- fixed mistake with NULL and NOT_NULL assertions. Added tests to keep that from happening again
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@64 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-20 21:22:28 +00:00
mvandervoord
f44a5832ce
- remove color coding when running in continuous integration
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@63 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-20 21:08:43 +00:00
mvandervoord
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
mvandervoord
2051e500cb
- fixed order of test assert bits
...
- test_runner_generator now protects against directories in include statements
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@61 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-14 01:50:53 +00:00
mvandervoord
f7a9390ee7
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@60 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-13 04:49:04 +00:00
mvandervoord
50540c4e16
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@59 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-10 03:16:10 +00:00
mvandervoord
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
mvandervoord
e966e563c2
fixed silly mistake: only include cmock.h when mocking
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@57 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-09 12:23:40 +00:00
mvandervoord
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
mvandervoord
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
mvandervoord
5e6a64bca4
- added missing generate_module script
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@50 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-28 18:34:33 +00:00
mkarlesky
4eb66d2f2f
fixed typo in use of float exclusion macro
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@49 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-10 20:57:24 +00:00
mvandervoord
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
mvandervoord
302e786453
- updated test runner generator to match latest cexception changes
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@47 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-12-05 00:31:49 +00:00
mkarlesky
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
mvandervoord
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
mkarlesky
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
mkarlesky
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
greg-williams
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
greg-williams
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
greg-williams
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
mvandervoord
8117581f2f
- cleaned up interface to generate_test_runner.rb
...
- fixed a couple minor warnings in unity.c
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@39 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-08-24 13:53:46 +00:00
mkarlesky
d96d84f547
added output statement noting generation of test runner
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@38 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-07-13 22:14:10 +00:00
mvandervoord
f56bda283a
- made a minor tweak to initialization of unity structure to avoid silly compiler warnings.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@37 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-07-11 17:57:55 +00:00
greg-williams
18ef056d6d
Added resetTest() method to generate_test_runnner.rb to perform mock verification (optionally), tearDown() and setUp() mid-test. This allows for testing multiple passed through a given function that calls to external mocks and helps cleanup post-test state oddities. Need to figure out how to resolve this current circular reference from the test to the runner though, since the runner is what calls the test methods.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@36 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-07-05 18:42:39 +00:00
mvandervoord
aa3277dd19
- removed configurable tab because it was a performance hit without significant benefit
...
* WARNING: This is very likely to break the way you call generate_test_runner! We have removed the tab argument. *
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@35 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-25 19:23:18 +00:00
mvandervoord
432e6313f8
- finished strict ordering support
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@34 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-24 02:27:01 +00:00
mvandervoord
8b274116c0
* fixed mistake in global ordering support in test runner generator
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@33 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-06-19 02:04:47 +00:00
greg-williams
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
mkarlesky
72d461cacd
changed grab_config to class method
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@31 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-29 20:36:15 +00:00
mkarlesky
d60fb2146a
modified to have a bit more generic and useful interface
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@30 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-29 20:17:19 +00:00
mvandervoord
02276ff2af
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@29 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-28 15:35:54 +00:00
mvandervoord
8d03e90091
- moved unity helper into the example directory, because it's not really core.
...
- made generate_test_runner more flexible in how data comes in.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@28 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2009-05-28 15:31:34 +00:00