QTest Qt 6 test-discovery compatibility shift affects low-traffic workload optimization
0 reputation · 04 Nov 2024, 13:13 UTC
The goal is to minimize runtime overhead for infrequent Qt QTest executions while maintaining reliable test coverage across Qt versions. Selective test execution via QTEST_MAIN and individual test function names can reduce runtime, but the interaction with optimization compilation flags and Qt 6's revised test-discovery mechanism introduces uncertainty about assertion behavior and test introspection for low-traffic scenarios.
How does Qt 6's test-discovery change affect the reliability of QTEST_MAIN-based selective execution in low-traffic runs? Can -O2 or -O3 compilation safely suppress debug output for QTest assertions without compromising test reporting? Does QSignalSpy cleanup behavior differ between Qt 5 and Qt 6 when tests are selectively invoked?