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

后端 未结 6 552
南方客
南方客 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:43

    Take a look at https://github.com/yui/yuitest/wiki/Code-Coverage

    I've integrated this tool in my Selenium tests a time ago. You need a bit of work to gather coverage info before page changes (in any case js trigger a page reload, link etc...)

    Once you set up everything, it will fully coverage any js executed while Selenium load and test your website pages.

    PS : Even if it was specially adapted for YUI test, you can use it with selenium.

提交回复
热议问题