Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC

后端 未结 6 567
南方客
南方客 2021-01-01 20:48

Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC

Hi,

I want to JS code coverage done by my Selenium T

6条回答
  •  孤城傲影
    2021-01-01 21:48

    In theory, you can use any coverage tool that instruments JavaScript code to collect coverage data.

    For example, you can use JSCoverage either in proxy mode (for real-time instrumentation) or for static instrumentation to run your Selenium tests off the instrumented code.

    One technical hurdle could be to devise a way to accumulate coverage data across multiple pages. The coverage tool of your choice could already have support for accumulation of data from multiple page runs. If not, you might have to handle that bit yourself, but this is probably not something trivial.

提交回复
热议问题