59 Commits

Author SHA1 Message Date
bc2ab233ee Fix error in example_1 and example_2
This test case had an error in both examples:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode

It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
2019-01-25 21:51:25 -08:00
9d1ffe26d6 Fix error in example_1
This test case had an error:
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
It was supposed to be a list of values that are NOT in the list,
and none of them should be found.  It incorrectly included '1'
which is a value in the list.

The compile option -Wno-misleading-indentation was also added to
remove a compiler warning produced by gcc 7.3.0
2019-01-25 21:22:55 -08:00
a6e9f85f71 Added examples for the configuration of UnityPrintFormatted and exclusion of <stddef.h> 2019-01-25 07:01:29 +01:00
6b657c6f17 Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
7dd21c333e Fix unintended array overrun in example (#360. Thanks @quantum-leaps) 2018-11-02 07:42:47 -04:00
cc909efed3 Implement optional printing of execution time for each test 2017-09-10 13:00:09 +12:00
05daf95d4e Update to match Ruby style guide 2017-09-08 15:37:31 -04:00
a07d07cd1a Allow specifying custom header declaration
The user can specify UNITY_OUTPUT_CHAR_HEADER_DECLARATION and
UNITY_OUTPUT_FLUSH_HEADER_DECLARATION when he would like to declare
UNITY_OUTPUT_CHAT or UNITY_OUTPUT_FLUSH respectivly
2017-08-01 22:43:58 +03:00
c1bc32dc58 - Generator will not change names by default
- Fixed some style issues.
2017-06-25 13:58:31 -04:00
2a5b24f7bf Finished updating all Ruby scripts to match our coding standard. Woo! 2017-03-28 20:02:53 -04:00
3a6cca39c5 Fixed things that the stylizer “autocorrected” to wrong. ;) 2017-03-28 08:52:10 -04:00
3062c39725 Starting to enforce our coding style. The first step is that we’ve pulled in Rubocop to check out Ruby syntax. There is likely a bit of customization to do yet AND there is definitely that backlog of todo’s that we just told it to ignore. 2017-03-28 08:44:32 -04:00
e0104179ed Fix 32-bit build issues on Travis-CI by installing multilib
If, longer term, the Travis-CI support for 32-bit is inconsistent
the lines that failed are:
 - make -s DEBUG=-m32
 - cd ../example_3 && rake
Add target 'ci' for building examples with -Werror
2017-01-22 21:13:08 -06:00
bb7f889f03 Compile examples in continuous integration, update example_3 readme
Altered the rake build so that it passes. The example_3 shows off
some failing tests, so the rake build has to ignore those.
Update .gitignore file with executables from examples
2017-01-18 19:33:24 -06:00
185fb49380 Cleanup example Makefiles, update test runners
Delete clang flags that were disabled with -Wno-*
2017-01-18 08:13:41 -06:00
d460a89a04 Get example 1 to compile easily on systems without ruby 2017-01-17 21:10:38 -06:00
6695e9e975 Merge pull request #242 from jsalling/feature/fixture-test-name
Fixture - Remove duplicate output of test name in verbose mode
2017-01-13 16:38:10 -05:00
e92f2c2762 Update comments to reflect changes to floating point 2016-12-29 23:10:43 -06:00
5f33721924 Remove duplicate output of test name, Fixture verbose mode
Remove UNITY_FIXTURES option, which was probably not doing what was
originally indended. It was suppressing the test name even in quiet mode.
2016-12-28 21:18:50 -06:00
03b9eaa9ba Fix bug, makefiles for example do not clean on windows 2016-10-06 11:00:22 +02:00
28c94bd403 Remove references to UNITY_EXCLUDE_SIZEOF, rework config header 2016-08-25 08:48:29 -05:00
83f7d5237b Change example_1 to compile with std=c89 2016-05-15 14:35:56 +01:00
d7a371a993 Moved example unity_config.h from src to examples
As recommended in PR #193
2016-05-12 16:00:31 +01:00
33325f4a0b More fixes to line endings 2016-01-07 14:20:59 -05:00
77af37add0 - catch optional fixtures plugin up to mainline unity (somewhat. like fixing line endings) 2015-06-18 17:16:01 -04:00
06c95fcb08 - Fixed broken examples 2015-06-18 10:38:20 -04:00
89b003ed0b Removed platform-specific warnings unsupported by GCC 2015-03-12 10:53:44 -04:00
5f77c6380d Added "const" to one argv parameter that was missed when adding strict error checks. 2015-01-20 16:14:41 +02:00
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
28d05e4f33 Fixed tests 2014-11-05 21:57:48 -05:00
bcb4b74de9 - updated example makefiles to handle cygwin better 2014-11-03 19:39:37 -05:00
399a878c14 Fixed examples compilation 2014-11-01 21:47:04 +04:00
376480a4d9 make fixtures and examples compatible with new UnityBegin method. 2014-08-16 10:51:25 -04:00
bff1fc68cb rearranged project to centralize all self-test stuff under test directory. only pull in includes when required. 2014-07-30 10:14:02 -04:00
8ca802d4dc Updated examples
*  Renamed example x to example 3
2013-07-19 21:30:35 +10:00
d27699d97a Updated examples
*  Updated example 2 readme
 *  Broke up huge line in example 2 makefile
2013-07-17 23:27:25 +10:00
efc1df828f Added example
*  Added example that uses unity test fixture
2013-07-17 23:23:09 +10:00
1b9b197298 Added another example
*  Simple makefile example, extracted from existing example
2013-07-17 22:48:50 +10:00
5932565bae Updated example
*  Moved existing example to its own directory, with the intention of adding more examples
 *  Existing example uses its own .yml file instead of one of the files in targets/.
2013-07-17 22:42:43 +10:00
843370a7c2 Updated example makefile
*  Make would fail due to missing build directory. Now it doesn't try to delete build/
2013-07-17 22:14:47 +10:00
53a5ae92c1 Updated examples rakefile
*  Build directory created if it doesn't exist. This fixes a gcc "no such file or directory" error when running rake
2013-07-14 20:37:39 +10:00
356b43d1c2 add './' to in example makefile, since . may not be included in PATH 2013-03-25 16:05:30 +08:00
97000e0104 - make test runner handle spaces and dashes in file names 2012-11-25 15:52:27 -05:00
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
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
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
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
b7564ce8a0 - reduced target file redundancies in Unity
- fixed broken gcc makefile

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@95 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-09-19 01:07:58 +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