sabbelasichon / t3_tactician

Tactician wrapper for usage in TYPO3 extbase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run PHPUnit with composer

tomasnorre opened this issue · comments

Hi,

I would like to suggest adding the phpunit command to composer scripts.
so they can be executed with

$ composer test:unit makes it easier to run the tests, without having to know the complete command, disadvantage is that the --colors parameter will be ignore, as the output is from composer and not from terminal directly.

Doing it like this for the crawler:
https://github.com/AOEpeople/crawler/blob/typo3v9/composer.json#L58

If you run without having a phpunit binary, it will trigger a composer update first.

I am fine with the current implementation and the benefit of using the --colors option.