Google has announced that ScriptCover will be released as an open-source project. ScriptCover is a JavaScript code coverage analysis tool launched by Google. It provides real-time and line-by-line code coverage analysis for Web pages. Google said ScriptCover will eventually be applied to the Chrome browser as an extension of it.
The test result of ScriptCover is displayed on a continuously loaded page, which is automatically updated when the user operates the website. The results can be viewed at any time using a report tool, and ScriptCover will highlight the test code for more detailed analysis.
According to Google's software engineer Ekaterina Kamenskaya, ScriptCover is useful in performing manual or automatic tests and understanding and debugging complex code. According to Kamenskaya, developers imagine that the features of ScriptCover should include:
Supports other coverage metrics, such as path coverage and condition coverage ). Reports can be exported in HTML and XML formats. You can submit the coverage analysis file to the server for more detailed analysis. You can map user behavior to related JavaScript code.
For more information about ScriptCover, refer to this article on the Google Open Source blog and related documents on Google Code. The ScriptCover Code is hosted on Google Code Based on Apache Lience v2.
Http://code.google.com/p/script-cover/downloads/list