Are there any tools for performing code coverage analysis on QML code? Is such a question even applicable to a declarative language like QML?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There was a talk recently on QtCon about C++ and QML code coverage. https://conf.qtcon.org/en/qtcon/public/events/407 (Open the page and click on video link to watch)
The talk was by Harri Porten who is co-founder and co-CEO of froglogic GmbH, a company which sells automated GUI testing tools. They also have a blog post about QML code coverage http://blog.froglogic.com/2014/10/measuring-qml-coverage/
回答2:
Classic coverage treatment of JavaScript and C++ does not have to be the end of QML coverage analysis.
For example, coverage of States is thinkable as well. Are all of them entered during test execution? That's what users of Coco filed as feature requests at least.