Skip to content

QML/UI testing infrastructure #31

Description

@PyXiion

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:

  1. Create tst_*.qml test files alongside components
  2. Use TestCase to test model interactions, signal emissions, visual states
  3. Run via qmltestrunner or pytest plugin
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions