Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. Qoverage: simple QML code coverage
Forum Updated to NodeBB v4.3 + New Features

Qoverage: simple QML code coverage

Scheduled Pinned Locked Moved Unsolved Showcase
2 Posts 1 Posters 548 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SanderVc
    wrote on 19 Feb 2024, 09:02 last edited by SanderVc
    #1

    Hi all,

    I'd like to let you know about qoverage: a simple QML code coverage tool.

    qoverage tracks code coverage in QML files, including:

    • Component instantiations
    • Property access
    • Javascript functions

    It was created when I wanted to see QML code coverage for a QML-based open source project and integrate it into GitHub's CI flow.

    In my eyes, the strength of qoverage is in what it doesn't do: instead of implementing QML parsing from scratch, qoverage relies on Qt's own qmldom to find where to inject instrumentation code. This will hopefully ensure that qoverage can be kept up to date with relatively little effort.

    In terms of features, it is not at the level of a professional tool like Coco. Instead, the aim is to provide a basic, open-source tool. By keeping it simple, hopefully it can be widely used and easily maintained. Code contributions are welcome!

    Feel free to give it a try.

    • Github: qoverage
    • Example of its output on shoopdaloop: CodeCov report -- EDIT: updated link. CI seems to be misconfigured on master - I am pointing it to an older commit now on which the QML report was correctly uploaded.

    I don't consider it to be mature, but it is usable and available on PyPi. The most significant limitation is that for now, imported .js/.mjs files are not included in coverage.

    Kind regards!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SanderVc
      wrote on 19 Feb 2024, 12:38 last edited by
      #2

      The latest coverage report for ShoopDaLoop is here.

      1 Reply Last reply
      0

      2/2

      19 Feb 2024, 12:38

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved