简体   繁体   中英

javascript coverage without unit tests

In a legacy webapp, we haven't any unit test on the javascript part.
We want to increase the code quality and delete dead code.
Is there any way to have line-by-line Javascript code coverage statistics in the browser during human test ? Is it possible to do that with istanbul for example ?

Executing every use case in a single human testing session could be painful, I don't recommend this approach. There is a lot of automated integration test framework like http://casperjs.org or http://nightwatchjs.org with which you can code your test scenario in a close to human semantic.

Imo, automation is not a waist of time ;)

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