I'm using VSTS build and release pipeline to deploy my angular application. there is 3 ways to run e2e tests:
1- In the build pipeline after installing npm and angular dependencies.
2- In the release pipeline after the deployment of my application.
3- Locally before using VSTS pipelines.
If i run it in the build pipeline: How can i serve the angular app on certain port so that i can run the e2e on it during the build process in VSTS?
If i run it in the release pipeline: The deployed app won't have the npm dependencies just have the dist folder so that i can't run ng e2e there.
If i run it locally: This is time consuming and not preferred.
What is the best common way to run it?