[FLOW3-general] Configuration for functional tests

Andreas Wolf andreas.wolf at typo3.org
Mon Aug 20 13:46:34 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

a problem that drove me nuts yesterday: I executed the functional
tests for the security subpackage of FLOW3. Some tests failed, without
any obvious reason. As my FLOW3 is a patched instance of master (with
several merges from the official repository), I tried with a fresh
master. No change. In a completely fresh installation all tests worked.

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
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), there should be some clear warning sign in
the docs about this.

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, with a clear warning message. Maybe that saves one or
the other guy a few hours of painful debugging ;-)

Regards
Andreas

- -- 
Andreas Wolf

TYPO3 Core Team Member
TYPO3 PSL Review Team Member
TYPO3 Association Member
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iF4EAREIAAYFAlAyI5kACgkQVRefK2MMWg5GCgEAjurOIqYwIksDpJp/4jyaWiBo
+Xqq34HeerPHB791pLoA/0qMOffrOvB9oopWBBqRXLPxHkvJZka4fmZNHF9gSnA9
=6iI9
-----END PGP SIGNATURE-----


More information about the FLOW3-general mailing list