grunt-phpunit icon indicating copy to clipboard operation
grunt-phpunit copied to clipboard

Support gruntfile targets?

Open Nessworthy opened this issue 10 years ago • 1 comments

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.

Nessworthy avatar Jul 18 '14 19:07 Nessworthy

+1

tommienu avatar May 11 '16 07:05 tommienu