Results 1 to 5 of 5

Thread: [UT coverage] How can the industry improve QT code coverage

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,327
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: [UT coverage] How can the industry improve QT code coverage

    Refactoring your code into an MVC design might be a good way to allow implementing unit tests more easily, since the data model is not tightly coupled to the UI in this case. You can test the model using a command line program since the model does not require a user interface.

    Depending on how deeply you want to refactor, you could even package your model into a separate library that could allow testing outside of your application.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    xurongqin (26th May 2025)

Similar Threads

  1. Replies: 0
    Last Post: 18th February 2015, 04:39
  2. Replies: 0
    Last Post: 19th August 2014, 17:43
  3. Replies: 0
    Last Post: 17th July 2014, 22: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
  •  
Qt is a trademark of The Qt Company.