Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7884675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:51:50+00:00 2026-06-03T04:51:50+00:00

When CppUnit tests are run, there are dots in the output of the xml

  • 0

When CppUnit tests are run, there are dots in the output of the xml or the text file.

freopen("UnitTest-Results.xml", "a", stdout);
CppUnit::TextUi::TestRunner runner;
runner.addTest(pSuite);

// Change the default outputter to a Text Outputter.
runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), std::cout));

The output is:

.........................
OK (25 tests)

How do I choose not to print the dots in the output file ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:51:52+00:00Added an answer on June 3, 2026 at 4:51 am

    Depending on how you call run you can specify the right parameter to skip the output.

    The method signature is:

    bool TextTestRunner::run( std::string testName,
                           bool doWait,
                           bool doPrintResult,
                           bool doPrintProgress )
    

    with doPrintResult = false and doPrintProgress = false you can suppress all output.

    The other way is to use TestRunner or your own subclass of it. This is also not that difficult and it just depends on the structure of your tests which one is easier to implement.

    P.S. Just to make it a bit more clear, ui::text::TestRunner is just an alias for TextTestRunner. The old access way through TextUi::TestRunner is deprecated and TextTestRunner should be used directly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I change the output of cppunit from dots, indicating how many tests
I am learning CppUnit, and my code coredumped when calling TestRunner::run(). That's line 34
I have a bunch of module tests written in CPPunit with some mocks created
I am new to CppUnit. Is there any way to assert that a value
Is there a good book or online site discussing the use of the CppUnit,
I'm trying to pretty print STL data structures to inspect the CppUnit test results
I have a very large code base that contains extensive unit tests (using CppUnit).
I'm currently writing up some CPPunit tests for a program that tests a hardware
Okay I basically want to get the ball rolling and write some CPPUnit tests
I've setup teamcity with my sln file and got the unit tests to show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.