samedi 12 septembre 2015

Integration testing: making C++ components visible to `qmltestrunner`

Suppose I have a number of QML components.

They work with a component or a QObject (suppose it's a data source,but could be anything, even the old Horse/Animal/Dog with the method bark()) that I wrote in C++ and I expose in my main.cpp somehow.

While a proper unit test would, of course, stub it, I may want to write an integration test to see that they play nice together.

How would I then render them visible to qmltestrunner?

If it's not possible at all, how would one best approach to integration testing of QML and C++ components?

Aucun commentaire:

Enregistrer un commentaire