jUnit test reporter available for unittest++ 1.4 - docs.google.com/folder/d/0B_6N…
— SmukkeCharlie (@SmukkeCharlie) February 25, 2013
The code in the tweet is for the svn version of the unittest++ framework, not the one available in google code!!
Just dump the files in your test directory and use them like this:
#include <fstream>
#include <unittest++/UnitTest++.h>
#include <unittest++/TestRunner.h>
#include <test_reporter_junit.h>
using namespace std;
using namespace UnitTest;
int main()
{
ofstream f("test-report.xml");
Test_reporter_junit reporter(f);
TestRunner runner(reporter);
return runner.RunTestsIf(Test::GetTestList(),NULL,True(),0);
}
No comments:
Post a Comment