Commit Graph

61 Commits

Author SHA1 Message Date
mvandervoord bad429428d Add assertion for checking empty null-terminated arrays. This is particularly useful for check c strings. 2020-03-16 15:04:40 -04:00
Jørn Villesen Christensen 22a047ebb5 Updated documentation and examples to reflect the TEST_PRINTF function. 2020-02-14 22:45:58 +01:00
mvandervoord 354e2b4da6 Added set of assertions for checking CHAR's and CHAR arrays (not as strings) 2019-10-28 16:54:32 -04:00
mvandervoord e1dca8fa48 Add options for different output formats 2019-10-28 12:43:11 -04:00
mvandervoord be87d790c7 Add verifyTest option to go with resetTest.
Fix docs.
2019-10-28 10:32:22 -04:00
mvandervoord d16c27b085 - added target for checking ANSI compliance
- fixed ANSI (C89) issues, including #418
2019-10-25 10:17:12 -04:00
Jason Heeris 86b19304ed Added num_elements parameter to docs for TEST_ASSERT_INTn_ARRAY_WITHIN(). 2019-10-25 14:37:00 +11:00
Mark VanderVoord 9fdcc2d3ff Catch up documentation to match these changes. 2019-10-21 14:29:52 -04:00
Mark VanderVoord 0000f1e6d2 Add TEST_MESSAGE for outputting messages without aborting a test and _MESSAGE variant to TEST_PASS collection. 2019-07-06 11:02:32 -04:00
Mark VanderVoord bc72eeb211 Merge pull request #425 from farrrb/fix-ti-c55-sizeof
TI C55x compatibility patches - removal of sizeof operator from the interfaces
2019-07-05 15:41:41 -04:00
Mark VanderVoord f2d826c7c5 - Added options for how to handle TEST_ASSERT_EQUAL shorthand
- Tweak a couple style problems with Ruby scripts.
2019-07-03 15:03:03 -04:00
Fabian Zahn 06ddace18d Update documentation of "UNITY_POINTER_WIDTH" 2019-05-12 19:44:02 +02:00
Mark VanderVoord e9f9638497 Merge branch 'master' into issue-#346-documentation-improvement 2019-05-04 08:13:14 -04:00
Dom Postorivo 9340582797 ARRAY_WITHIN in unity 2019-04-20 14:10:56 -04:00
Fabian Zahn 92a345b264 Added documentation and changed all the code examples to backtick (code) blocks. 2019-01-24 20:12:16 +01:00
Dan Yeaw 100c73d37f Move license for GitHub detection 2018-11-13 21:07:05 -05:00
Fabian Zahn e2e549a22f Added include of 'stddef.h' to 'unity_internals.h' if 'UNITY_EXCLUDE_STDDEF_H' is not defined. This adds compiler independent support for the 'NULL' macro. 2018-10-14 14:11:22 +02:00
Kyle Krueger ea5e51ffcc move some details from main readme to docs, and link to getting started 2018-09-07 14:46:20 +02:00
Kyle Krueger 020a531e4b add link to test_runner file 2018-09-07 14:33:51 +02:00
Mark VanderVoord 9987824da7 Added support to inject "extern C" into runners when generated. 2018-08-09 08:48:08 -04:00
Deryew e72dfafd44 Fixed some grammar errors on docs
Fixed grammar errors and some sentences to make it easier to understand
2018-07-30 10:53:02 +08:00
Roland Stahn ac3cde30f5 Added notes on _MESSAGE assertions (#331)
Added notes, why _MESSAGE assertions do not support printf style formatting and how users can work around this limitation (see #331)
2018-07-21 16:57:53 +02:00
Trond Einar Snekvik ceecf1fae8 Add support for :mock_suffix
Adds support for :mock_suffix when generating mock setup and teardown
functions. Also documents both prefix and suffix in the helper script
guide.
2018-06-07 10:06:43 +02:00
Fabian Zahn 8efa8ffc62 Removed UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION to simplify the behaviour 2018-02-18 13:57:34 +01:00
Mark VanderVoord b4aca70fd9 Update UnityGettingStartedGuide.md
Added more detail on test naming.
2017-12-06 10:08:56 -05:00
Mark VanderVoord 774da10e00 Merge pull request #296 from jlindgren90/master
Allow suiteSetUp() and suiteTearDown() to be provided as normal C functions (Thanks @jlindgren90 )
2017-11-04 09:04:53 -04:00
Victor Lambret 17d4ea92e1 Color test results using ANSI escape codes
Help error detection by adding specific colors for test results. This
behavior is activated only when unity if compiled with UNITY_COLOR flag.
2017-10-24 07:33:30 +02:00
John Lindgren 1381a1a4cb Update documentation. 2017-09-13 18:24:07 -04:00
Mark VanderVoord 60def109a7 Update configuration docs 2017-09-13 09:39:52 -04:00
Dom Postorivo f2fdf1a133 Added Greater than and Less than asserts from other PR 2017-05-13 15:59:51 -04:00
Mark VanderVoord 2c7629a0ae Documentation Updates 2017-04-07 13:14:32 -04:00
toby 1e4396745c Add EACH_EQUAL changes 2017-03-29 15:09:01 +01:00
toby e2cc67918d Add newlines after headings for best practice, trim trailing spaces & convert sneaky incorrectly coded chars
blank newline after headins is apparently best practice according to http://stackoverflow.com/q/42953462/1292918
2017-03-29 15:01:23 +01:00
toby 192d5176f1 Remove PDFs 2017-03-29 15:01:23 +01:00
toby c48f6c9420 Add Github Markdown versions of documents
Add GFM version of getting started guide PDF

Add GFM version of configuration guide PDF

Add GFM version of helper scripts guide PDF

Add GFM version of coding standard PDF

Add GFM version of assertions reference PDF

Change markdown used to italicise line. Switched to use asterisk markdown instead
2017-03-29 14:46:31 +01:00
Mark VanderVoord 083564b837 Update docs to also understand the new Each Equal handlers 2017-03-26 17:54:28 -04:00
Mark VanderVoord 0781e74ac6 Add our coding standard to documentation 2017-03-20 16:29:40 -04:00
Mark VanderVoord 8723d50f0e Turn UNITY_OUTPUT_FLUSH off by default. Added a quick-define for the most common case: UNITY_USE_FLUSH_STDOUT. Clarified documentation. Fixes issue #269 2017-03-14 23:23:19 -04:00
Mark VanderVoord 837c5291fa The class gives back to the community: better documentation produced for the class and now part of the open source project 2016-05-06 11:52:06 -04:00
Mark VanderVoord 33325f4a0b More fixes to line endings 2016-01-07 14:20:59 -05:00
Mark VanderVoord f52538d401 - fix whitespace
- tweak docs
2016-01-04 19:30:38 -05:00
Mark VanderVoord c6dc96f387 We're going to use the C99 isinf() and isnan() macros wherever possible now. If your compiler doesn't support this, define UNITY_EXCLUDE_MATH_H and it will go back to the old method 2015-11-13 09:16:42 -05:00
Paul Wilkinson 1c080665aa docs: fix some typos 2015-11-09 19:53:06 +00:00
Eivind Tagseth 61c0b0b75c Added support for TEST_ASSERT_EQUAL_STRING_LEN*
Compares two strings until maximum n bytes (i.e. strncmp()).
2015-04-23 15:39:19 +02:00
Mark VanderVoord 6792a5f4ed Updated License to be standard MIT License 2014-12-09 12:05:53 -05:00
mvandervoord 4ddc77efd6 - docs are now caught up to latest feature set
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@141 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 23:37:56 +00:00
mvandervoord 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
mvandervoord 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
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
mvandervoord 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