Google open sources JavaScript coverage analysis tool
Source: Google
Google has announced the release of ScriptCover as an open source project. Available as an extension for the company's Chrome web browser, ScriptCover is JavaScript coverage analysis tool that provides real-time, line-by-line code coverage statistics for web pages.
ScriptCover displays results as the page continues to load and is automatically updated when the user interacts with the site. The reporting tool highlights each of the lines of code that have been executed for a more detailed analysis.
Google Software Engineer Ekaterina Kamenskaya says that the code coverage detector "is useful when performing manual and automated testing and in understanding and debugging complex code". According to Kamenskaya, the developers envision that future versions of ScriptCover may include support for other metrics and richer reports with options to export to HTML and XML, as well as the ability to submit coverage statistics to a server for analysis.
More details about ScriptCover can be found in a post on the Open Source at Google blog and in the provided documentation. Hosted on Google Code, ScriptCover source code is licensed under version 2 of the Apache Licence.
See also:
- Google open sources JavaScript unit testing framework, a report from The H.
(crve)