[FLOW3-general] Configuration for functional tests

Karsten Dambekalns karsten at typo3.org
Fri Aug 24 13:06:44 CEST 2012


Hi.

On 20.08.12 13:46, Andreas Wolf wrote:
> It took me a few hours to figure out that my configuration was the
> problem: I had configured several things in
> Configuration/Settings.yaml, which is also applied to the Testing context.
> 
> In my eyes this is no anticipated behaviour - tests should run in
> isolation and not depend on something that is frequently changed in an

The order in which configuration is parsed and merged is clearly
documented, and there is no separate handling for the Testing context.
Maybe that needs to be pointed out explicitly.

I'd not add code to handle Testing different, because when testing you
want to test the production code, not some special case behavior.
Otherwise it's easy to get into trouble…

> installation. Additionally, if we propagate the central configuration
> files in Configuration/ as the way to share settings between
> Development and Production contexts (which is what I thought until now
> and how I still use them)

That is right! But anything context specific and/or dangerous (like DB
credentials) should not go into the global configuration, but into
context specific folders.

> Regarding the tests that failed for me: I propose to add a check if
> the security framework is disabled (which it was in my case) and skip
> the tests then

That could be done, true. Will you open a ticket, please?


Regards,
Karsten
-- 
Karsten Dambekalns
TYPO3 Core Developer, FLOW3 / Phoenix Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list