Results 1 to 5 of 5

Thread: Which are the tools for calculating code coverage analysis?

  1. #1
    Join Date
    Sep 2012
    Location
    Pune, India
    Posts
    18
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Which are the tools for calculating code coverage analysis?

    Hello Guys,

    We are developing a Qt desktop application. We are using QtTestlib to for unit testing of the application.
    So we want to calculate the code coverage for the unit tests written.

    Configuration is as follows -

    1. Operating system - Windows 7
    2. Qt Version - 4.8
    3. Compiler - MSVC 2008


    Which are the tools I can use for code coverage analysis?

  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: Which are the tools for calculating code coverage analysis?

    You can use any code coverage tools for your compiler.

    This seems to be a good place to start: http://blogs.msdn.com/b/jsocha/archi...-visual-c.aspx
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2011
    Posts
    37
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: Which are the tools for calculating code coverage analysis?

    I like CoverageValidator. It gives real time coverage results. It isn't free though.
    http://successfulsoftware.net/2008/0...age-validator/

  4. #4
    Join Date
    Oct 2013
    Posts
    37
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Which are the tools for calculating code coverage analysis?

    If you're still looking, Squish Coco is a great option. Also not free, but provides great coverage analysis using various types of coverage methods and reports, and also works with Squish GUI Tester, known for it's Qt support.
    More about: http://www.froglogic.com/squish/coco/
    Webinar on Feb 25th: http://www.froglogic.com/news-events/events/

  5. #5
    Join Date
    Oct 2015
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: Which are the tools for calculating code coverage analysis?

    Quote Originally Posted by anwar.qt View Post
    Hello Guys,

    We are developing a Qt desktop application. We are using QtTestlib to for unit testing of the application.
    So we want to calculate the code coverage for the unit tests written.

    Configuration is as follows -

    1. Operating system - Windows 7
    2. Qt Version - 4.8
    3. Compiler - MSVC 2008


    Which are the tools I can use for code coverage analysis?

    Hi,
    I too have the same scenario where I need to display the code coverage or even if it generate any file with coverage data then also it is fine. I tried with below options in my pro file but it did not generate any file having code coverage.

    QMAKE_CXXFLAGS+= -MP -fprofile-arcs -ftest-coverage -O0
    QMAKE_LFLAGS += /MANIFESTUAC:NO

    Can you please share the approach , like how did you resolve your issue.

    In my case :
    Configuration is as follows -

    1. Operating system - Windows 7
    2. Qt Version - 4.8
    3. Compiler - Visual Studio 2010 Compiler (c1)

    Note: I am writing my own pro file and after importing it to visual studio I am building it. (FYI)

    Thanks in advance

Similar Threads

  1. Replies: 2
    Last Post: 9th January 2016, 11:38
  2. Qt Creator Can I post links to code lines in output pane using external tools?
    By mrsomeonee in forum Qt Tools
    Replies: 0
    Last Post: 25th August 2011, 14:15
  3. Static code analysis tool for application developed using Qt
    By newtolinux in forum Qt Programming
    Replies: 4
    Last Post: 30th March 2011, 00:14
  4. Detect out of coverage wit Qt
    By hubbobubbo in forum Qt Programming
    Replies: 0
    Last Post: 1st February 2011, 10:16
  5. Free code coverage analyzers
    By jpn in forum General Programming
    Replies: 4
    Last Post: 30th August 2006, 18:29

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.