-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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:e2efeatureIssue that requests a new featureIssue that requests a new featureseverity2: inconvenientworkaround3: complex
Milestone
Description
🚀 Feature request
Command (mark with an x)
- e2e
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 --debug or ng e2e --inspect which 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 a debugger; 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:
- This is a leaky abstraction.
- We can do every other execution necessary via the CLI, but not debug e2e tests. As a tangential example, take a look at this
package.jsonscripts configuration I have, all of which just usesngdirectly, except for debugging e2e tests. - We do seem to leak Protractor in a few other places (such as the configuration file).
- Subtle implementation changes in
ng e2ecould cause the debug command to need to be changed. For instance, should I updatewebdriver-managerbefore running?
- We can do every other execution necessary via the CLI, but not debug e2e tests. As a tangential example, take a look at this
- I don't see any official documentation or stance on how to debug e2e tests; everything I've found is community built.
- Running Protractor directly also does not boot up the actual application, so a separate
ng servecommand is necessary.- I didn't realize this and lost a lot of time debugging, confused why it worked previously and suddenly stopped today. Turns out I had the server running the background last time and didn't realize that was a dependency!
Reactions are currently unavailable
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:e2efeatureIssue that requests a new featureIssue that requests a new featureseverity2: inconvenientworkaround3: complex