Results 1 to 5 of 5

Thread: Extending QTest for custom logging to TeamCity

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

    Default Extending QTest for custom logging to TeamCity

    Hi,

    I would like to extend the QTestLib logging facility (I see QPlainTestLogger inherits from QAbstractLogger). I would like to tell QTest to use my (soon to be written) custom TestLogger (which will format output accordingly for Teamcity unit testing).

    I would prefer a clean way in contrast to hacking QTestLib and making it work.

    Can anyone give me a direction as the "easily extendable" item on QTestLib manual is not helping very much.

    Thanks allot,

    Pieter

  2. #2
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extending QTest for custom logging to TeamCity

    bump......

  3. #3
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Extending QTest for custom logging to TeamCity

    Even I'm looking for the similar option of extending the QTestLib but don't see any information pertaining to "easily extendabe" in the manual.

  4. #4
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Extending QTest for custom logging to TeamCity

    I don't know what exact format of logs do you expect but note that you can have xml output (use proper switch for test application).
    If this doesn't solve your problem you have two choices:
    a. write pipe application which will parse xml output to required format.
    b. correct QTestLib yourself (this is just developers tool so you don't have to worry about binary compatibility).

  5. #5
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Extending QTest for custom logging to TeamCity

    Hi,

    I decided to work around the problem. I went with GoogleTest and thus avoided the whole hacking and backporting changes for QTestLib. GoogleTest also integrates nicely with TeamCity currently.

    Pieter

Similar Threads

  1. QT Logging class
    By leoalvesmachado in forum Newbie
    Replies: 7
    Last Post: 1st December 2013, 20:30
  2. Replies: 18
    Last Post: 11th March 2011, 13:21
  3. Replies: 1
    Last Post: 10th February 2011, 16:16
  4. logging support!!
    By Raajesh in forum Qt Programming
    Replies: 1
    Last Post: 18th June 2008, 19:18
  5. logging and tracing in Qt
    By Artschi in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2006, 20:10

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.