Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Coverage report for Angular Front End UI Single page application(SPA) from Cypress End to End scripts using Cucumber BDD #921

Open
venunh opened this issue Dec 31, 2024 · 0 comments

Comments

@venunh
Copy link

venunh commented Dec 31, 2024

@bahmutov Am trying to generate code coverage report for our single spa application by executing e2e which are in bdd cucumber format. But the source code is not getting instrumented.

Below is the project structure.

Root -> src-> FE code
Root -> cypress -> cypress scripts

When we start angular server locally, it will be listening to some port say https://localhost:3000. But to access our local server, we login to dev url and switch to local application instead directly accessing from localhost.

Open https://dev.domain.com/appname
then after login, update url to
https://dev.domain.com/local-appname to access application in local mode

Also, ours is single spa application which constitute multiple repos to perform one complete end to end flow.

In this case, can anyone please guide us to instrument source code of local server from non localhost url and generate code coverage report by executing cypress e2e scripts which are in bdd cucumber format

Cypress version 11.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant