#3 How can I generate the xml report ?

open
nobody
None
5
2008-12-22
2008-12-22
Anonymous
No

Hi ~

This is YongJin.Cho from Korea.

How can I generate the xml report as title ?

Main code is below.

std::ofstream f("tests.xml");
UnitTest::XmlTestReporter reporter(f);
return UnitTest::RunAllTests(reporter, \ UnitTest::Test::GetTestList(), \ NULL, \ 0);

But, When I compile the sources, I encountered the errors as following.

/product/wibro/premium/test/UnitTest++/src/TestRunner.h:14: error: too many
arguments to function `int UnitTest::RunAllTests()'

I can't find how to generate the xml report.
What is the problem ?

Please, answer me.

Regards,
YongJin.

Discussion

  • YongJin,

    They removed all signatures for RunAllTests but the RunAllTests(void) in v1.4. You are trying to use
    a signature that has arguments which is obsolete now. There is an Oct 2008 post in the Archives about this.

    Dr. Bubba