Origin of idea
Five QML files (ModList.qml 500+ lines, Header.qml 260+ lines, Sidebar.qml, TimeAnalytics.qml, IconRail.qml) have zero automated tests. Complex behavior (drag reorder, keyboard nav, search filter) is verified manually.
Suggestion / proposed solution
Set up QtQuickTest / QtTest for QML unit testing:
- Create tst_*.qml test files alongside components
- Use TestCase to test model interactions, signal emissions, visual states
- Run via qmltestrunner or pytest plugin
- Add QML tests to just check / CI
pytest-qt is already in dev deps — add pytest-qml or write a custom runner using QQuickView.
Alternatives considered
No response
Additional context
No response
Origin of idea
Five QML files (ModList.qml 500+ lines, Header.qml 260+ lines, Sidebar.qml, TimeAnalytics.qml, IconRail.qml) have zero automated tests. Complex behavior (drag reorder, keyboard nav, search filter) is verified manually.
Suggestion / proposed solution
Set up QtQuickTest / QtTest for QML unit testing:
pytest-qt is already in dev deps — add pytest-qml or write a custom runner using QQuickView.
Alternatives considered
No response
Additional context
No response