Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qt6 autotest pluging not find any testcase
Forum Updated to NodeBB v4.3 + New Features

qt6 autotest pluging not find any testcase

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 267 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.
  • E Offline
    E Offline
    ericyan
    wrote on last edited by
    #1

    hello, I create an autotest project,then write a simplest test class:

    #include <QtTest>
    
    class Test : public QObject
    {
        Q_OBJECT
    public:
        Test(){ }
        ~Test(){ }
    private slots:
        void test_case1();
    };
    
    void Test::test_case1()
    {
    
    }
    
    QTEST_APPLESS_MAIN(Test)
    #include "tst_test.moc"
    

    then I build it , run it , every thing is ok , I can see the results in output view, but the tests view doesn't find any testcase, rescan also doesn't work, here is tests view shows:
    q1.png
    my Testing settings here:
    q2.png
    autotest plugin state:
    q3.png

    I alos test the same in qt5.12,the tests view can show the testcase,test results view also show the result by graphics mode, that's very nice. so I wander why it doesn't work in qt6.

    my environment:
    qt6.2
    win10
    vs2019 community

    thanks!

    E 1 Reply Last reply
    0
    • E ericyan

      hello, I create an autotest project,then write a simplest test class:

      #include <QtTest>
      
      class Test : public QObject
      {
          Q_OBJECT
      public:
          Test(){ }
          ~Test(){ }
      private slots:
          void test_case1();
      };
      
      void Test::test_case1()
      {
      
      }
      
      QTEST_APPLESS_MAIN(Test)
      #include "tst_test.moc"
      

      then I build it , run it , every thing is ok , I can see the results in output view, but the tests view doesn't find any testcase, rescan also doesn't work, here is tests view shows:
      q1.png
      my Testing settings here:
      q2.png
      autotest plugin state:
      q3.png

      I alos test the same in qt5.12,the tests view can show the testcase,test results view also show the result by graphics mode, that's very nice. so I wander why it doesn't work in qt6.

      my environment:
      qt6.2
      win10
      vs2019 community

      thanks!

      E Offline
      E Offline
      ericyan
      wrote on last edited by
      #2

      i change qt version from 6.2 back to 6.1.1, then autotest plugings works , thanks.

      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