parserTest: delay hooks execution to the point we really need them
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 29 Nov 2011 13:54:17 +0000 (13:54 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 29 Nov 2011 13:54:17 +0000 (13:54 +0000)
commitafaead99b841741abdc83cd54e2b1ae00319865f
tree843646f0b414d2f7df4d7376b56429d060f3c5a2
parent1d5120a7489e1781351e9767bf54d2dd8a0cb546
parserTest: delay hooks execution to the point we really need them

disabled and filtered out tests were still triggering hooks run. This patch
let us delay hooks running run a little bit until we know we will really need
their execution (i.e. when test is not filtered out and not disabled).

Saving all that unneeded code execution makes running a subset of parser tests
a bit faster when one has many extension enabled.

NOTE: '!!article' sections are still parsed regardless of their usage.
 We would need to add an article/test dependency system to really filter them
tests/testHelpers.inc