简体   繁体   中英

how to get code coverage for client side JavaScript codes?

How to get code coverage for client side JavaScript codes in a web application written by c# asp.net web forms using dot net framework 4.6 for UI tests through MTM automated test runs or through TFS 2013 Build as type of Build-Deploy-Test when client has Windows OS and browser is chrome or edge?

Build-Deploy-Test is a XAML Build as Lab Default Template.

Here is the MSDN article which explains how to enable code coverage with MTM automation.

This requires 2012.1 0r later versions of Visual Studio, Test Controller, Test Agent and TFS.

Edit

If you want to get Javascript code coverage, you have to write unit tests for Javascript code with mocha/jasmine and then use any of the code coverage tools ( istanbul ) available

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM