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

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

Open tot-ra opened this issue 9 years ago • 0 comments

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)

tot-ra avatar Apr 22 '15 14:04 tot-ra