Results 1 to 2 of 2

Thread: GUI version of test runner

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default GUI version of test runner

    Hello there,
    recently, I'm writeing unit test with qtestlib,.. it's very simple and easy to use.
    But, if the number of unitests getting larger, it's hard to see all test results in small console window (I develop my stuffs on WindowsXP with VS2005).
    I'd prefer GUI version of test runner(imagine read and green bar in JUnit!), but I guess no one's yet. (of course I know cppunit has qt version of gui runner, but it's compliated and heavy)

    Is there any plan to develop gui'ed version of test runner? tell me plase, if you know something.

    regards,
    Intaek.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: GUI version of test runner

    I don't think there are and ever will be plans for such thing. But if you want it, you can use qInstallMsgHandler() to redirect output from tests to your own class that can then display results in a GUI. I'm sure converting output to a series of QTableWidgetItems or QTreeWidgetItems shouldn't take more than an hour of work. Especially that you can make the test output in xml format, so it's easy to process such output. On the other hand you can just take the xml output and apply a xsl template on it to have a pretty result as HTML. As far as I remember, that's exactly what Trolltech does with its tests.

Similar Threads

  1. Creating an evaluation version or trial version
    By munna in forum General Discussion
    Replies: 9
    Last Post: 20th June 2015, 01:50
  2. GUI Test Runner for CppUnit
    By 3dch in forum Qt-based Software
    Replies: 4
    Last Post: 20th September 2011, 12:28
  3. Version control - what to use?
    By TheKedge in forum General Programming
    Replies: 11
    Last Post: 4th March 2007, 08:49
  4. Replies: 6
    Last Post: 10th November 2006, 10:38
  5. How to unit test a Qt Gui
    By mitskits in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2006, 07:36

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.