grunt-phpunit
grunt-phpunit copied to clipboard
Support gruntfile targets?
The following code does not work:
phpunit: {
dev: {
classes: {
dir: '<%= pkg.paths.tests %>php/'
},
options: {
logTap: '<%= pkg.paths.logs %>phpunit.log',
colors: true,
bootstrap: '<%= pkg.paths.tests %>php/bootstrap.php'
}
}
}
Log:
Running "phpunit" task
Running "phpunit:dev" (phpunit) task
Verifying property phpunit.dev exists in config...OK
File: [no files]
Options: classes={"dir":"tests/php/"}, options={"logTap":"logs/phpunit.log","colors":true,"bootstrap":"tests/php/bootstrap.php"}, logTap="logs/phpunit.log", colors, bootstrap="tests/php/bootstrap.php"
Starting phpunit (target: dev) in
Exec: phpunit --colors --verbose --bootstrap tests/php/bootstrap.php --log-tap="logs/phpunit.log"
PHPUnit 3.7.21 by Sebastian Bergmann.
Usage: phpunit [switches] UnitTest [UnitTest.php]
phpunit [switches] <directory>
...
Fatal error: Command failed:
Removing the 'dev: {' and '}' works, but keeping it in produces the above.
+1