Configure test function prefix?
Is it true that the function prefix is not configurable? The Test Files & Executable Test Fixtures section of the doc says:
There are no configuration options for the naming convention of your test case functions. A test case function signature must have these three elements: void return, void parameter list, and the function name prepended with lowercase "test"
Thoughts on making this configurable? Is there some issue on why this isn't supported? How difficult would it be?
Thanks
Hi this is configurable with :test_file_prefix: test_ in your yaml project file.
I am talking about the test function. Not the test file.
Hi. I'll need to fix that part of the documentation. It is incorrect (outdated).
In the :unity section of the config file, you want to set the :test_prefix string. This string is set to test|spec|should by default, which means it will accept tests with any of these names:
void testThis(void);
void test_AlsoThis(void);
void specification(void);
void spec_ForSomething(void);
void should_prove_things_work(void);
//etc. you get the idea.
Awesome, that works. Thanks!
It works. Thank you