i using protractor run end-to-end tests , wondering if possible change locations of tests needs perform are. hoping able pass in command line parameter.
for example current set up:
protractor looks tests in path ./tests
, runs features in features folder. have done lot of looking around , cannot find defined path uses. wanting able pass parameter, when run command line, along lines of --params.tests="c:\path\to\tests"
.
edit: using mocha test framework
i assuming have configured cucumber custom framework in protractor config file , triggering tests running 'conf.js'
current setup might be:
specs: ['tests/features/*.features'], cucumberopts: { // point dependencies. script files contain dependencies require: 'tests/steps/*.js', },
change cli accept these values @ run-time
protractor conf.js --specs tests/features/*.features --cucumberopts.require tests/steps/*.js
Comments
Post a Comment