59 Commits

Author SHA1 Message Date
5053f2ca90 Fixed issue with requiring the new type_sanitizer module in different ways 2015-03-12 12:25:43 -04:00
a24bd45511 Added type_sanitizer.rb to consolidate converting a string to a valid C identifier, which will allow CMock and Ceedling to use the same construct which is currently duplicated in each repo. 2015-03-12 10:33:23 -04:00
b953334ef3 Fixed compiler warning and added README.md 2014-11-05 21:43:47 -05:00
616dd8bd43 Fixed script unit tests. Fixed generate_test_runner configuration loading
- Modified rakefile to look in correct directory for script unit tests
- Updated paths in script unit tests
- Updated 'expectdata' files to match latest version of generated code
- Fixed bug which prevented generate_test_runner from loading config from
yaml file.
2014-10-29 16:10:11 +00:00
2fef6ea5ac - cleaned up command-line entry of arguments
- made help more clear
- added ability to rename setUp / tearDown / and test prefix.
2014-10-24 22:00:05 -04:00
a53bb4d177 cleanup command line arguments of runner generator 2014-09-01 16:30:07 -04:00
14b074336b reenable results summary.
support tests named spec as well.
clean up UnityBegin to make us not have to dig inside it to inject the filename.
Add UNITY_OUTPUT_START() and UNITY_OUTPUT_COMPLETE() for future use.
2014-07-30 22:12:49 -04:00
a4a2eb787d Added more robust handling of test includes, and to provide backwards API compatibility for Ceedling 2014-07-30 10:28:24 -04:00
1cf02f8bf3 support cmock's need to destroy all of its memory at the end of the suite 2014-05-21 19:29:44 -04:00
d4197dacd0 There was no reason that CMock init and destroy calls should be in the protected blocks. teardown is more flexible if verify is called afterwards. 2014-04-21 16:55:12 -04:00
a77f0308a7 Don't use any Ruby 1.9-only notation in the encoding call 2014-04-21 16:15:14 -04:00
f1c778e100 Fixed initialization of data structure by just doing it manually instead of statically (goodbye compiler warnings!) 2014-03-07 15:17:25 -05:00
d3c18c26ad support different encoding styles and force to something we can work with. 2014-02-28 10:37:47 -05:00
4460fc50f1 Update generate_test_runner.rb
Bug - compilation error when using parametrized tests with user defined types. When using TEST_CASE and parametrised test and passing parameters which are of user defined types, the test_runner does not compile because it does not recognize the user defined types.
Test runner should copy the include statements from the test file
2013-06-21 20:23:24 +03:00
97000e0104 - make test runner handle spaces and dashes in file names 2012-11-25 15:52:27 -05:00
3a82e1eeab - fixed summarizer to handle more generic input
- ignore comments in test parser
- fixed a couple bugs in 16-bit support
- fixed minor compiler errors for less lenient compilers
- fixed error in docs.
- renamed link to link_it in rakefiles to avoid collision in new versions of rake

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@136 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-10-11 02:40:04 +00:00
7deba78730 - backed out Mike's incorrect changes to generate_test_runner
- made generate_test_runner's two include groups more clearly differentiated
- added negative tests to int16's.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@133 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-28 00:29:20 +00:00
b44d3f3e9d git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@132 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e 2011-04-27 04:36:26 +00:00
9691acfb82 fixed forgotten includes
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@131 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-27 04:24:05 +00:00
114755e200 - renamed parts of test hash used internally so ceedling can inject information more easily.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@129 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-17 23:01:26 +00:00
39654f36e8 - separated generate step in test runner generator
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@128 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-15 01:01:39 +00:00
3e472491c9 - added ability to parse fun characters like parenthesis in TEST_CASES
- fixed TEST_CASE error

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@115 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-22 18:53:23 +00:00
aca9892418 - fixed yaml load option
- added option to specify includes as <stdlib.h> so that they will get angle brackets instead of ""

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@114 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-22 18:20:39 +00:00
4e4d4291d6 - updated documentation
- parameterized tests now output parameters as part of message


git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@110 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-12-28 15:32:20 +00:00
57178b9295 - tweaked parameterized tests to be C99 standards compliant
- fixed a few bugs in fixtures to get it to pass against our standard compilers
- added extern of OUTPUT_CHAR method to keep compilers from complaining

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@107 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-12-01 01:56:24 +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
4f2de8c87e - now compat with Ruby 1.9.2
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@99 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-10-22 00:46:58 +00:00
33fa00d518 - added tests for generate_test_runner. other script tests to come
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@97 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-23 02:39:15 +00:00
1f643e8661 - updated example and main tests to show how to use generate_test_runner with yaml target file
- improved error reporting for generate_test_runner

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@96 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-22 00:19:04 +00:00
f278fda873 - added hitech_picc18 sample target
- added ability to do suite_setup and suite_teardown to runner

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@94 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-10 12:15:05 +00:00
f5ce02f135 - removed pointless cast from UnityPrint
- test executable returns number of failures as exit status
- caught up lame text docs

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@90 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-08-13 00:32:34 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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