Exemplo n.º 1
0
	explicit reporter_cppunit( const std::string&filename = "testResult.xml" )
		: _failedTests()
		, _passedTests()
		, _filename( filename )
		, _stream( new std::ofstream( _filename.c_str() ) ) {
		if ( !_stream->good() ) {
			throw tut_error( "Cannot open output file `" + _filename + "`" );
		}
	}
Exemplo n.º 2
0
 explicit cppunit_reporter(const std::string &filename = "testResult.xml")
     : failed_tests_(),
       passed_tests_(),
       filename_(filename),
       stream_(new std::ofstream(filename_.c_str()))
 {
     if (!stream_->good()) {
         throw tut_error("Cannot open output file `" + filename_ + "`");
     }
 }