protractor - How to pass seleniumServerJar path in gruntfile from env variable (bash profile) -


i specifying seleniumserver jar path below. instead of specifying path below, there way can pass env variable (bash profile).

module.exports = function(grunt) {

// project configuration. grunt.initconfig({ pkg: grunt.file.readjson('package.json'),  protractor: {     options: {         configfile: 'protractor.conf.js',         keepalive: true, // if false, grunt process stops when test fails.         nocolor: true, // if true, protractor not use colors in output.         args: {             // arguments passed command             seleniumserverjar: '/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.3.1.jar',             //chromedriver: 'node_modules/webdriver-manager/selenium/chromedriver_2.29'         }     },     e2e: {         options: {             keepalive: false,             args: {                 //includestacktrace : 'true',             }         }     }  }, });  // load plugin provides "uglify" task. //grunt.loadnpmtasks('grunt-contrib-uglify');  // enable grunt-protractor-runner grunt.loadnpmtasks('grunt-protractor-runner'); //grunt.loadnpmtasks('grunt-protractor-webdriver'); grunt.loadnpmtasks('grunt-contrib-jshint');  // default task(s). //grunt.registertask('default', ['uglify']); grunt.registertask('e2e', ['protractor:e2e']); grunt.registertask('default', ['jshint']); 

};


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -