QML Code Coverage Analysis

2020-06-30 05:32发布

问题:

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.



标签: qml qt-quick