<div dir="ltr"><div><div>You can use qmltestrunner to run QML tests that require Python code.<br><br></div>You need the pyqt5qmlplugin which you can get by building PyQt5 from source. It is not included in the wheels.<br><br><a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html#writing-python-plugins-for-qmlscene">http://pyqt.sourceforge.net/Docs/PyQt5/qml.html#writing-python-plugins-for-qmlscene</a><br><br></div>Let me know if you run into any issues.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 12, 2018 at 4:37 AM, Alexander Rössler <span dir="ltr"><<a href="mailto:alexander@roessler.systems" target="_blank">alexander@roessler.systems</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Has anyone found a good testing strategy for the QML part of a PyQt<br>
application?<br>
<br>
It would be wonderful to have pytest wrapper around qmltestrunner.<br>
<br>
Thanks,<br>
Alex<br>
______________________________<wbr>_________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.<wbr>riverbankcomputing.com/<wbr>mailman/listinfo/pyqt</a></blockquote></div><br></div>