grunt-phpunit
grunt-phpunit copied to clipboard
How to use with CI Unit?
I would like to use grunt-phpunit with CI Unit (https://github.com/Celc/CIUnit)
I'm not quite sure how to set it up and was wondering if you had pointers?
There is a phpunit.xml.dist file that seems to control which tests are run.
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true"
stopOnFailure="false"
bootstrap="../vendor/Celc/ciunit/src/bootstrap_phpunit.php">
<php>
<server name="SERVER_NAME" value="http://example.com"/>
</php>
<testsuites>
<testsuite name="ControllerTests">
<directory>controllers</directory>
</testsuite>
<!-- <testsuite name="HelperTests">
<directory suffix=".php">helpers</directory>
</testsuite>
<testsuite name="LibTests">
<directory suffix=".php">libs</directory>
</testsuite>
<testsuite name="ModelTests">
<directory suffix=".php">models</directory>
</testsuite>
<testsuite name="SystemTests">
<directory suffix=".php">system</directory>
</testsuite> -->
</testsuites>
</phpunit>
I can run the tests without grunt using /vendor/phpunit/phpunit/phpunit