Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.4.1 QTestLib colorizing results in console output not working (red green unit testing)

Qt 5.4.1 QTestLib colorizing results in console output not working (red green unit testing)

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J.T.32
    wrote on last edited by
    #1

    I would like to have the results of QTestLib in the console colorized (PASS: green, FAIL: red) in order to see the results faster (Increasing QTestLib productivity). I am using Qt 5.4.1 MSVC2010 x64. I set the environmental variable QTEST_COLORED to 1. However, the console output from the QTestLib gets not colorized. When I am using Qt 4.8.6 x64 then the console output gets colorized as expected (PASS: green, FAIL: red).

    Does anybody know how I can achieve the same result in Qt 5.4.1?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That was an undocumented feature that has been removed 4 years ago. See here for more details

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        That was an undocumented feature that has been removed 4 years ago. See here for more details

        J Offline
        J Offline
        J.T.32
        wrote on last edited by
        #3

        @SGaist
        Thank's for the information!

        That means that the only possibilty is to use post-processing in order to colorize the test output.

        How would you do that in Qt creator and in visual studio?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          For Qt Creator, I'd take a look at code handling the output panel.

          As for Visual Studio, I don't know.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved