-
Notifications
You must be signed in to change notification settings - Fork 11.9k
ng e2e --debug #16683
Copy link
Copy link
Closed
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussionarea: @angular-devkit/build-angulardevkit/build-angular:e2efeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesseverity2: inconvenientworkaround3: complex
Milestone
Metadata
Metadata
Assignees
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussionarea: @angular-devkit/build-angulardevkit/build-angular:e2efeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesseverity2: inconvenientworkaround3: complex
🚀 Feature request
Command (mark with an
x)Description
I've been looking for means to debug faulty e2e Protractor tests, however I don't see a means of accomplishing this in the Angular CLI, or a documented solution.
Describe the solution you'd like
Ideally, I'd like to see some kind of
ng e2e --debugorng e2e --inspectwhich builds/runs the application, starts Protractor, and opens up a debugging port. If there is a way to break after test files are loaded, so I can set breakpoints without manually adding adebugger;statement, that would be great too.Describe alternatives you've considered
Most of the material I've found online tells me to call Protractor directly, via something like
node --inspect node_modules/.bin/protractor e2e/protractor.conf.js. This has a couple problems to me:package.jsonscripts configuration I have, all of which just usesngdirectly, except for debugging e2e tests.ng e2ecould cause the debug command to need to be changed. For instance, should I updatewebdriver-managerbefore running?ng servecommand is necessary.