Closed mabasic closed 10 years ago
Hello!
You're specifying the path in the settings with gulpfile_paths
? if not, ignore the following: All the package does with each gulpfile_path
is append it to the main folder path in your Sublime project, so maybe it's creating the wrong path. Can you give me an idea of how is your project structured? (so I can reproduce the error).
If gulpfile_path
wasn't the case, can you please tell me if there is some error on the Sublime console? (Menu -> View -> Show Console).
Thanks!
This is from my gulpfile:
gulp.task('phpunit', function() {
var options = {debug: false};
gulp.src('app/tests/*.php')
.pipe(phpunit('.\\vendor\\bin\\phpunit',options))
.on('error', gutil.log);
});
I want to run this from windows.
If I change .\\vendor\\bin\\phpunit
to ./vendor/bin/phpunit
and run it on linux it works.
This is the error from sublime console:
[gulp] { [Error: Command failed: '.\vendor\bin\phpunit' is not recognized as an internal or external command,
operable program or batch file.
] killed: false, code: 1, signal: null }
Ah I see, it seems to be an error in the PATH
environment variable, I'll take a look from Windows as soon as I can, but in the meantime (if you haven't already and have some time), try using the exec_args setting of the package to set your path in Windows.
Last question, the gulp runs correctly from the console right?
OMG, I am so sorry. Your plugin works correctly, I intended to create a issue on another repository gulp-phpunit
.
Sorry for the trouble. Nice work on the plugin.
Haha its fine! Believe it or not, I'm more relieved for not having to enter Windows than from the issue itself.
Thanks!, good luck with phpunit!
When I specify a path to phpunit like so:
.\\vendor\\bin\\phpunit
it still does not work. The path is correct.