[TYPO3-dev] Shell execution of phpunit tests for typo3core
Andy Grunwald [wmdb]
andreas.grunwald at wmdb.de
Fri Sep 18 13:17:32 CEST 2009
Ingo Renner schrieb:
> Andy Grunwald [wmdb] wrote:
>
> Hi Andy,
>
> thanks for bringing this up.
>
>> What do you think about this topic?
>
> I think it's vital to be able to run them from CLI, especially when
> considering that we very likely want to have some sort of CI server soon
> too. Also pre/post commit hooks come to my mind regarding this.
>
>
> best
> Ingo
>
Hey Ingo,
thanks for your reply. Your suggestions are two very big advantages!
I think, that the best implementation of this is to make the class
"tx_phpunit_testcase" available for the "tests/" directory.
In my opinion the cli execution of this unit tests must be independent
from the TYPO3 Extension "phpunit".
To build a wrapper for all phpunit-commands is not the best way. In my
opinion the best way is to make this tests executable for two ways:
a) the shell command "phpunit UNIT-TEST-FILE"
b) the backend extension "phpunit"
To match this goal, the unit tests must be require this used files.
If is welcome, i could try to make a patch.
Another idea is to contact Oliver Klee to discuss this topic with him.
And now the question: What do you think? :)
More information about the TYPO3-dev
mailing list