Intervention in internal functional tests

My question is: how can I set milestones in functional tests? Is this possible in the intern? I run test windows locally on WebDriver and have a "debugger"; breakpoints make test development easier.

execute (function () {debugger;}) should be launched in the browser and act on the "debugger"; in it, but that does not stop execution ...

+4
source share
1 answer

It works for me. I start several terminals, start my selenium server server in one, make a node investor in another, and then run this url in chrome. I update the chrome window, then I put node --debug-brk and you see the catch debugger, press play - and it will go to your debugger point. I also use the leaveRemoteOpen flag at the end of the command, which will leave the browser window open. my command looks like this:

node --debug-brk node_modules / intern / bin / intern-runner config = public / js / dojo / tt / tests / intern-config.js leaveRemoteOpen

Also in your configuration you will need the following: excludeInstrumentation: /.*/ otherwise it will mix up your code.

+2
source

Source: https://habr.com/ru/post/1535604/


All Articles