Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71645

Running specific tags in data-driven QML test doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.12.0 Beta 3
    • Fix Version/s: 5.12.1, 5.13.0 Alpha 1
    • Component/s: Testing: QuickTest
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      16e3859af180b28157f39ad5d1f77ff3571753a2 (qt/qtdeclarative/5.12)

      Description

      Running QML test case:

      import QtTest 1.11
      
      TestCase {
        name: 'Test'
      
        function test_some_data() { 
          return [ { tag: 'foo' }, { tag: 'bar' }, { tag: 'baz' } ]
        }
      
        function test_some(data) {
          compare(3, data.tag.length)
        }
      } 

      with command: qmltestrunner Test::test_some:foo
      executes all data tags ignoring one provided. Same feature works in c++ QtTest

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kiburtse Kirill Burtsev
            Reporter:
            kiburtse Kirill Burtsev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes