node.js - Protractor JS pre-processors -


i aware there option within karma use pre-processors however, in protractor can't see same sort of thing. using onprepare option wondering if possible / if there way have npm module run prior (basically same onprepare) config , not having require etc.

try using scripts in package.json:

"scripts": {     "postinstall": "bower install",     "pretest": "npm install",     "test": "karma start test/karma.conf.js",     "test-single-run": "karma start test/karma.conf.js  --single-run",     "preupdate-webdriver": "npm install",     "update-webdriver": "webdriver-manager update",     "preprotractor": "npm run update-webdriver && node setup.js",     "protractor": "protractor test/protractor-conf.js",     "postprotractor": "node teardown.js", } 

by saying 'npm run protractor' in cmd, both scripts in pre-(setup.js) , postprotractor (teardown.js) run before , after e2e tests.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -