Results 1 to 3 of 3

Thread: What kind of project for QTest?

  1. #1
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default What kind of project for QTest?

    I want to unit-test a few (non Gui) classes I ported from another language so the idea of trying QTest was rather natural.
    When I look at the QTest documentation I read that there is a QTest macro that creates a main() function.
    As far as I know you can't have two mains in one project. So creating a Console application is out of the question.
    So then, what kind of project would you recommend?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: What kind of project for QTest?

    If you are using QtCreator, it has a program template for QTest based unit tests.
    Look in category "Other Templates"

    Cheers,
    _

  3. #3
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What kind of project for QTest?

    Thankyou!
    I didnt think of looking that far.

Similar Threads

  1. Hi all. I give up (not really, but yes, kind of)
    By tachoknight in forum Newbie
    Replies: 1
    Last Post: 4th December 2010, 02:57
  2. Can anybody explain me this 'kind of casting'¿?
    By tonnot in forum General Programming
    Replies: 6
    Last Post: 28th November 2010, 19:39
  3. diffrend kind of lists of GUI
    By tomixer in forum Qt Programming
    Replies: 7
    Last Post: 12th September 2010, 22:44
  4. Qt Creator What kind of license I can select about Qt Creator ?
    By kichi in forum Qt Tools
    Replies: 8
    Last Post: 8th April 2010, 04:55
  5. How to code this kind of UI?
    By stephenteh in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 23rd September 2009, 11:31

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.