I want to simplify the use of our test suites from the command line. Therefore, I added the following grunt-shell task to ours Gruntfile.js:
module.exports = function( grunt ) {
grunt.initConfig(
{
shell : {
e2e : {
command : "./node_modules/protractor/bin/protractor protractor_conf.js"
}
}
}
);
grunt.loadNpmTasks( "grunt-shell" );
grunt.registerTask( "e2e", ["shell:e2e"] );
};
When I run the task, I get an error message:
'.' is not recognized as an internal or external command, operable program or batch file.
All the examples that I found to run shell commands ran binaries that were available around the world, but I want to run the protractor binary that was installed locally.
I use bash for Windows if that matters.
source
share