diff --git a/auto/generate_test_runner.rb b/auto/generate_test_runner.rb index 8e8e5bbc0d378e1a8a45dd48528d09d2a752dbb1..5c5ead4d850cc92efa57a004cc3cc8ab3172755a 100644 --- a/auto/generate_test_runner.rb +++ b/auto/generate_test_runner.rb @@ -27,6 +27,7 @@ class UnityTestRunnerGenerator :plugins => [], :framework => :unity, :test_prefix => "test|spec|should", + :mock_prefix => "Mock", :setup_name => "setUp", :teardown_name => "tearDown", :main_name => "main", #set to :auto to automatically generate each time diff --git a/src/unity.h b/src/unity.h index 30d0e91a3a5bd0a2430b5e0014df09ee7e9f2465..2cdd1511292d74fdf50060683d8bfe128cf39db4 100644 --- a/src/unity.h +++ b/src/unity.h @@ -74,6 +74,10 @@ void tearDown(void); * This method allows you to abort a test immediately with a PASS state, ignoring the remainder of the test. */ #define TEST_PASS() TEST_ABORT() +/* This macro does nothing, but it is useful for build tools (like Ceedling) to make use of this to figure out + * which files should be linked to in order to perform a test. Use it like TEST_FILE("sandwiches.c") */ +#define TEST_FILE(a) + /*------------------------------------------------------- * Test Asserts (simple) *-------------------------------------------------------*/