Results 1 to 2 of 2

Thread: How to use QTestLib to my project??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default How to use QTestLib to my project??

    Hi!

    I'm quite new with Qt and trying to unit test my project for the first time. I read the QTestLib tutorials but there's still a problem I can't figure out.

    How can I use QTestLib to test my own classes? For example in my project I have class named statesrv which is in files statesrv.h and statesrv.cpp. How can I test that class using QTestLib? Should I make another unit testing project or can I do it within the main project?

    Thanks for any answers!!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to use QTestLib to my project??

    You can do both. Depends if you want to have the testing done in your main code tree or in a separate tree.
    http://doc.qt.nokia.com/4.6/qtestlib-tutorial.html

Similar Threads

  1. qmake project setup - qtestlib scenario
    By dsaiko in forum Qt Programming
    Replies: 1
    Last Post: 6th June 2011, 15:52
  2. qtestlib
    By Jordan in forum Qt Programming
    Replies: 7
    Last Post: 28th September 2010, 11:47
  3. Project structure with qtestlib
    By matteonardi in forum Qt Programming
    Replies: 1
    Last Post: 1st April 2010, 08:01
  4. testing with QTestLib
    By hyling in forum Qt Programming
    Replies: 2
    Last Post: 12th July 2007, 20:37
  5. GUI runner of QTestLib
    By Intaek Lim in forum Qt-based Software
    Replies: 1
    Last Post: 25th April 2007, 08:06

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
  •  
Qt is a trademark of The Qt Company.