My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FrameworkGuide  
Framework Guide
Phase-Implementation, Phase-Deploy, Featured
Updated Feb 4, 2010 by larosel%...@gtempaccount.com

Framework Common

  • Add bind codes to your project from samples

BoostTest

  • compiler.PreprocessorDefinitions need "VUTPP_BOOSTTEST"
  • main suite name must "DefaultSuite" - use '#define BOOST_TEST_MODULE DefaultSuite'

UnitTest++

CppUnitLite2

- TestRegistry.h
int TestCount() { return m_testCount; }
Test** Tests() { return m_tests; } 
- Failure.h 
int LineNumber() const { return m_lineNumber; }
- Test.h 
const char *Name() const { return m_name; }

CppUnitLite

  • framework home : http://c2.com/cgi/wiki?CppUnitLite
  • compiler.PreprocessorDefinitions need "VUTPP_CPPUNITLITE"
  • Convert CppUnitLite library to static lib or dynamic dll
  • Fix library codes
- TestRegistry.h  
static Test* Tests() { return instance().tests; } 
Test.h  
char* Name() { return name_.asCharString(); }  

WinUnit

GoogleTest

move class implementation of UnitTestEventListenerInterface to gtest.h from gtest.cc

add parse function header to testing::internal(gtest.h)

// gtest.h
void ParseGoogleTestFlagsOnly(int* argc, char** argv);
void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv);

Add AddListener function in UnitTest class

// gtest.h
void AddListener(class UnitTestEventListenerInterface *listener);

// gtest.cpp
void UnitTest::AddListener(UnitTestEventListenerInterface *listener)
{
        internal::MutexLock lock(&mutex_);
        static_cast<UnitTestEventsRepeater*>( impl_->result_printer() )->AddListener( listener );
}

Sign in to add a comment
Powered by Google Project Hosting