<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Qt Quick Test with QBS]]></title><description><![CDATA[<p dir="auto">Looking at the <a href="http://doc.qt.io/qt-5/qtquick-qtquicktest.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt Quick Test example</a>, I'm wondering how to implement the equivalent using QBS instead of qmake. I've gotten it down to needing QUICK_TEST_SOURCE_DIR to be defined somehow. Adding Depends { name: "Qt.qmltest" } to the Application item and using QUICK_TEST_MAIN(example), the application builds and runs. The problem is the macro is actually expanding to:</p>
<pre><code>int main(int argc, char **argv) \
{ 
    return quick_test_main(argc, argv, #name, 0); 
}
</code></pre>
<p dir="auto">Since QUICK_TEST_SOURCE_DIR is not defined, meaning 0 is passed instead. This causes no tests to be run.</p>
<p dir="auto">With qmake, the pro file has "CONFIG += warn_on qmltestcase", but I'm not sure how to translate that into QBS. Specifically the qmltestcase part. Any ideas?</p>
]]></description><link>https://forum.qt.io/topic/59058/using-qt-quick-test-with-qbs</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 23:13:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/59058.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Sep 2015 03:14:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Qt Quick Test with QBS on Wed, 20 Jan 2016 10:12:16 GMT]]></title><description><![CDATA[<p dir="auto">I use CMake, not QBS, but this should be similar.</p>
<p dir="auto">All you need to do in CMake is to link your test target to QuickTest module (exactly as you link Core, Gui etc modules)</p>
]]></description><link>https://forum.qt.io/post/308382</link><guid isPermaLink="true">https://forum.qt.io/post/308382</guid><dc:creator><![CDATA[dor666]]></dc:creator><pubDate>Wed, 20 Jan 2016 10:12:16 GMT</pubDate></item></channel></rss>