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

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

    XMLWordPrintable

Details

    • All
    • 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

            kiburtse Kirill Burtsev
            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