Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Support gruntfile targets? #27

Description

@Nessworthy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions