Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Code Coverage in QML
Forum Update on Monday, May 27th 2025

Code Coverage in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 1.1k 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.
  • J Offline
    J Offline
    JasmineSethi
    wrote on 11 Apr 2019, 12:34 last edited by
    #1

    Can anyone help me with how to do code coverage analysis in QML?
    Any document or steps to be followed?
    Which is the best tool for code coverage?

    P 1 Reply Last reply 11 Apr 2019, 17:14
    0
    • J JasmineSethi
      11 Apr 2019, 12:34

      Can anyone help me with how to do code coverage analysis in QML?
      Any document or steps to be followed?
      Which is the best tool for code coverage?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 11 Apr 2019, 17:14 last edited by
      #2

      @JasmineSethi quick response: since QML is related to Javascript, from documentation:

      QML has a deep JavaScript integration, and allows signal handlers and methods to be defined in JavaScript

      I guess you may want to try a Javascript code coverage tool with QML

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fcarney
        wrote on 11 Apr 2019, 19:31 last edited by
        #3

        What is the definition of "Code Coverage"? Is this just unit testing or something more specific? There is a unit test library for QML.

        C++ is a perfectly valid school of magic.

        J 1 Reply Last reply 12 Apr 2019, 04:21
        1
        • F fcarney
          11 Apr 2019, 19:31

          What is the definition of "Code Coverage"? Is this just unit testing or something more specific? There is a unit test library for QML.

          J Offline
          J Offline
          JasmineSethi
          wrote on 12 Apr 2019, 04:21 last edited by
          #4

          @fcarney @Pablo-J-Rogina : Thanks for your response. But what exactly i want is :

          Function coverage
          Line Coverage
          Statement Coverage
          Decision Coverage (or Branch Coverage)
          Condition Coverage
          MC/DC – Modified Condition/Decision Coverage
          MCC – Multiple Condition Coverage

          How can we achieve this in qml?

          P 1 Reply Last reply 12 Apr 2019, 11:59
          0
          • J JasmineSethi
            12 Apr 2019, 04:21

            @fcarney @Pablo-J-Rogina : Thanks for your response. But what exactly i want is :

            Function coverage
            Line Coverage
            Statement Coverage
            Decision Coverage (or Branch Coverage)
            Condition Coverage
            MC/DC – Modified Condition/Decision Coverage
            MCC – Multiple Condition Coverage

            How can we achieve this in qml?

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 12 Apr 2019, 11:59 last edited by
            #5

            @JasmineSethi I recall Coco from Froglogic, maybe that tool can help you.

            Disclaimer: I'm in no ways affiliated or endorse by Froglogic company.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jim Gir
              wrote on 29 Jun 2020, 09:34 last edited by
              #6

              Anything new about it 2020 ?
              Coco is not well suited for opensource project.

              1 Reply Last reply
              0

              • Login

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