Mark VanderVoord
e4dfeaa14d
Merge pull request #362 from meslem12/patch-1
...
fixed compile error UNITY_PRINT_EXEC_TIME(). Thanks @meslem12 !
2018-10-18 22:58:40 -04:00
Levin Messing
7cc3cf478b
fixed compile error UNITY_PRINT_EXEC_TIME()
2018-10-18 23:55:38 +02:00
Mark VanderVoord
e025b8cd1d
Merge pull request #359 from farrrb/fix-include-stddef
...
Issue #317 - unity.h should include <stddef.h>
2018-10-14 16:24:19 -04: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
e0d52d1a79
fix uninitialzed value warning
2018-09-12 17:46:11 +02:00
Kyle Krueger
56f1646087
add missing trailing slash
2018-09-10 15:19:15 +02:00
Kyle Krueger
8ba35a0e52
Revert "remove change that slipped in from other project"
...
This reverts commit 5d2ef07054 .
2018-09-10 11:26:13 +02:00
Kyle Krueger
5d2ef07054
remove change that slipped in from other project
2018-09-10 11:21:41 +02:00
Kyle Krueger
c64cc7d4f4
fix new references
2018-09-10 10:51:14 +02:00
Kyle Krueger
f60ab920c9
switch hardcoded string to reference existing value
2018-09-10 10:38:55 +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
Kyle Krueger
bfd7828e66
Merge pull request #1 from ThrowTheSwitch/master
...
Get up to date
2018-09-07 14:10:47 +02:00
Mark VanderVoord
9987824da7
Added support to inject "extern C" into runners when generated.
2018-08-09 08:48:08 -04:00
Mark VanderVoord
031f3bbe45
Merge pull request #340 from elliot-gawthrop/unit-test-execution-time
...
Print execution time for each test when verbose mode enabled (Thanks @elliot-gawthrop, @shreyasbharath, and everyone who participated in this one!)
2018-08-08 08:24:46 -04:00
Mark VanderVoord
a6a35b78ae
Merge pull request #341 from Deryew/master
...
Fixed some grammar errors on docs (Thanks @Deryew !)
2018-08-08 07:05:47 -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
elliot
fb4b139043
Fixed UNITY_EXEC_TIME_STOP macro ifdef
2018-07-28 20:14:00 +01:00
elliot
f0e4571c96
Merge branch 'master' into unit-test-execution-time
2018-07-28 20:01:50 +01:00
Mark VanderVoord
ccb7faf3bd
Merge pull request #338 from rstahn/bugfix-less-or-equal
...
Fix LESS_OR_EQUAL_MESSAGE asserts for HEX32/HEX64 (#337 )
2018-07-26 16:18:32 -04:00
Mark VanderVoord
18e4fbe2ae
Merge pull request #335 from rstahn/patch-1
...
Added notes on _MESSAGE assertions in UnityAssertionsReference.md
2018-07-26 09:12:11 -04:00
Roland Stahn
6a1d2e8d44
Fix LESS_OR_EQUAL_MESSAGE asserts for HEX32/HEX64
...
Macros TEST_ASSERT_LESS_OR_EQUAL_HEX32_MESSAGE() and TEST_ASSERT_LESS_OR_EQUAL_HEX64_MESSAGE() need to be mapped to UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEXnn() instead of UNITY_TEST_ASSERT_SMALLER_THAN_HEXnn()
2018-07-25 22:57:44 +02: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
Mark VanderVoord
1f6c782040
Merge pull request #334 from Xenoamor/master
...
Flush unity output before a longjmp (Thanks! this is a good change)
2018-07-18 11:54:03 -04:00
Xenoamor
2c5d09bf20
Flush unity output before a potential longjmp
...
Flush the unity stdout buffer before calling TEST_ABORT().
This is because if TEST_PROTECT() has not previously been called this will cause a segmentation fault and the stdout buffer will fail to print
Although the segmentation fault will still occur, the error that caused it will at least be displayed
2018-07-18 16:34:14 +01:00
Mark VanderVoord
40af5e23eb
Update travis to specify valid version of rubocop
2018-07-18 11:20:29 -04:00
Mark VanderVoord
199b13c099
Merge pull request #332 from trond-snekvik/mock_suffix_support
...
Add support for :mock_suffix
2018-06-07 06:49:28 -04: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
Mark VanderVoord
d915bf7ae5
Merge pull request #324 from farrrb/origin/fix-UNITY_OUTPUT_FLUSH
...
Re: Fix custom UNITY_OUTPUT_FLUSH and add tests #287
2018-05-03 07:32:17 -04:00
Mark VanderVoord
e2ee98e3d6
Merge pull request #325 from farrrb/fix-parse.rb
...
Bugfixes and refactoring in parse.rb (thanks @farrrb and @jeremyhannon )
2018-05-03 07:25:16 -04:00
Fabian Zahn
38e1ee872c
Added some useful documentation which states the output formats that are parseable by this script.
2018-02-27 07:23:18 +01:00
Fabian Zahn
1994bf9d68
Fixed unity fixture output and added methods for each of the different outputs. Added documentation.
...
Fixed some whitespaces.
Refactored class_name to class_name_idx (expressiveness).
Refactored the xml output to methods (extensibility).
2018-02-26 22:23:11 +01:00
Fabian Zahn
7a43766586
- Fixed whitespaces and formatting
...
- Added more expressiveness to the code
- Fixed some of the rubocop hints
2018-02-22 21:47:21 +01:00
Fabian Zahn
ea51e2b35c
Refactored the os specific settings, it is now possible to convert both styles on every system (and even mixed)
2018-02-22 21:23:29 +01:00
Fabian Zahn
0937bf728c
- Removed member variable @test_flag
...
- Fixed stdout output if fixture is active
- Refactored the state manipulation of @test_suite and moved it completely into test_suite_verify()
2018-02-22 19:55:40 +01:00
Fabian Zahn
e038ae2ade
Refactored the test evaluation of the flushSpy
2018-02-18 18:44:58 +01:00
Fabian Zahn
436a46d8ef
Got the tests running
2018-02-18 17:43:08 +01:00
Fabian Zahn
2480a6124e
Added unit test for the call to flush
2018-02-18 17:08:49 +01:00
Fabian Zahn
5f67ac6ab2
Fixed copy and paste error, changed the signature from:
...
void flushSpy(int c) {}
to:
void flushSpy(void) {}
2018-02-18 16:32:04 +01:00
Fabian Zahn
37271e8a13
Fixed copy and paste error
2018-02-18 14:53:39 +01:00
Fabian Zahn
25804f3ab4
Added flushSpy and the respective helper functions
2018-02-18 14:46:42 +01:00
Fabian Zahn
456759296b
Added flushSpy
2018-02-18 14:23:26 +01:00
Fabian Zahn
fe950b9fa3
Makefile preparations
2018-02-18 14:11:19 +01: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
d9cd6988f3
Merge pull request #319 from farrrb/master
...
Some minor changes for parse_output.rb (Thanks @farrrb and @jeremyhannon !)
2018-02-15 07:49:20 -05:00
Fabian Zahn
4dfb512a27
Added ".to_s" to the test suite name (explicit type conversion)
2018-02-12 06:44:26 +01:00
Mark VanderVoord
7a1157d6f6
Merge pull request #322 from jeremyhannon/misra19.10_v2
...
MISRA 19.10: surround each macro param with parens.
2018-02-11 08:25:13 -05:00
Fabian Zahn
dc9c7a7b4b
Removed leading whitespace
2018-02-11 13:02:26 +01:00
Jeremy Hannon
9bada282f4
MISRA 19.10: parentheses around macro params
...
MISRA 2004 rule 19.10: inside macros, surround each parameter usage with parentheses.
2018-02-10 14:27:03 -06:00
Mark VanderVoord
a6b925a01f
Merge pull request #321 from jeremyhannon/misra19.10
...
MISRA - param names match; macro params in parens
2018-02-10 14:22:58 -05:00