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.

Fatal error: Command failed: /bin/sh -c phpunit --verbose #42

Description

@tot-ra

I'm getting Fatal error: Command failed: /bin/sh -c phpunit --verbose after I run my command with configuration option (which includes coverage report generation). This stops further task stack execution

Until its fixed, I'm resorting to raw execution..

grunt.registerTask('test', '', function () {
        "use strict";
        var exec = require('child_process').execSync;
        result = exec("phpunit -c phpunit.xml", { encoding: 'utf8' });
        console.log(result);
});

But it gives the same thing. I guess its phpunit/nodejs issue, looking at https://github.com/joyent/node/blob/master/lib/child_process.js

Error: Command failed: phpunit -c phpunit.xml
    at checkExecSyncError (child_process.js:1339:13)
    at execSync (child_process.js:1379:13)

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