javascript - How to setup protractor tests for debugging with Visual studio 2015 -
we use: protractor e2e tests, mocha , chai, node js tools visual studio 2015 node.js project. protractor's conf.js looks this:
exports.config = { framework: 'mocha', seleniumaddress: 'http://localhost:4444/wd/hub', specs: ['./tests/**/*_test.js'], mochaopts: { timeout: 30000 // ms } }
all need - stop on breakpoints.
protractor works fine while run protractr conf.js
, can't find way breakpoints inside of ide. read articles, visual studio code , launch.json or remote debugging. both of them looks not common situation. tried brows.pause()
, browser.debugger()
or deugger;
- no reaction. tests run , fails (as expected) same way without these commands. maybe there working configuration settings of project let me run protractor's testrs , debug them inside or @ least in browkser?
@artem,
note: eddie's requirement, him add answer here comment.
the solution:
reference:
https://misaxionsoftware.wordpress.com/2014/01/30/angularjs-protractor-visual-studio-super-dry/
angularjs debugging:
(1)include node_modules\protractor\lib\cli.js project , set node.js startup file
(2)in project properties, configure script arguments protractor.conf.js
Thanks for give us valuable information
ReplyDeleteWordPress Support Australia
WordPress Help