[TYPO3-core] RFC #10220: Feature: Get some unit tests for the core
Martin Kutschker
masi-no at spam-typo3.org
Thu Jan 22 21:26:17 CET 2009
Oliver Klee schrieb:
> Hi Dmitry,
>
> Dmitry Dulepov schrieb:
>> What I enjoyed/disliked (50/50) in the patch is this function name:
>>
>> testCheckModifyAccessListForNonAdminWithTableModifyAccessForBeUsersTableReturnsFalse()
>>
>> Reminds me one of my favorite web sites:
>> http://www.millionreasonswhylatviaisthebestcountryintheworld.com/
>
> Hehe ... ;-)
>
> Yes, that's the problem of fitting the following things in one function
> name:
>
> 1. "test" (required for the function to be recognized as a test function)
> 2. the name of the tested functions
> 3. any relevant (pre-)conditions
> 4. the expected result
Can we have some separators?
test_<function name>__<preconditions>__<expected result>
Note that around the precondontions there are two underscorces, so we
can distinguish it even if the funcion name contains underscores.
This might make the tests a bit more readable.
Masi
More information about the TYPO3-team-core
mailing list