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

Configuring istanbul with selenium tests #37

Open
abhibang opened this issue Jan 9, 2017 · 2 comments
Open

Configuring istanbul with selenium tests #37

abhibang opened this issue Jan 9, 2017 · 2 comments

Comments

@abhibang
Copy link

abhibang commented Jan 9, 2017

I’m new to the entire concept of capturing JS coverage.
The way I intend to use Istanbul is to check how many lines of my JS code is being hit by my tests running in a browser, thus using code coverage to improvise my test coverage.
Can somebody guide me to an example of how to integrate Istanbul to capture JS coverage for the test running using selenium webdriver.

@grawk
Copy link

grawk commented Feb 10, 2017

Doing something similar as well. Essentially:

  1. setup this middleware
  2. run selenium automation
  3. gather coverage metrics from the endpoint you defined in step 1

How you gather may vary. You could use your selenium automation scripts to gather the report. you could also curl the report.

@abhibang
Copy link
Author

@grawk , All the working scenarios coated are for NodeJS application. Is it possible to use istanbul-middleware to capture JS coverage for Java application.

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

2 participants