// Smoke test — proves the qmltestrunner harness is wired up. Doesn't // touch BackendConnection (which would require a live FrankenPHP child) // or any other framework-side code that needs network/state. The // assertion is intentionally trivial; the *infrastructure* is what's // being tested at this layer. // // Add domain-meaningful tests as `tst_.qml` next to this file // — qmltestrunner auto-discovers any `tst_*.qml` and runs every // `TestCase` function whose name starts with `test_`. import QtQuick import QtTest TestCase { name: "Smoke" function test_qml_engine_alive() { compare(2 + 2, 4, "QtTest harness is loaded and arithmetic still works") } function test_string_template() { const x = 7 compare(`x is ${x}`, "x is 7", "QML template literals available") } }