00001 00002 // Name: ITestRunner.h 00003 // Purpose: 00004 // Author: Marty Saxton 00005 // Modified by: 00006 // Created: 10/27/2001 00007 // RCS-ID: $Id: ITestRunner.h,v 1.4 2001/11/09 02:18:32 marty Exp $ 00008 // Copyright: (c) Marty Saxton, Thundercow Software 00009 // Licence: wxWindows license 00011 00012 #ifndef __WXTESTRUNNER_H__ 00013 #define __WXTESTRUNNER_H__ 00014 class wxITest; 00015 00021 class wxITestRunner 00022 { 00023 public: 00032 virtual void SpawnThreads( wxITest* ) = 0; 00033 00045 virtual void wxtstdout( const char* psz, ... ) = 0; 00046 00053 virtual void BeginTestCase( wxITest* pTest ) = 0; 00054 00061 virtual void EndTestCase( wxITest* pTest ) = 0; 00062 00072 virtual void OnTestFailure( wxITest* pTest, const char* pszMessage, const char* pszFile, unsigned long nLineNo ) = 0; 00073 00078 virtual int GetNumTestsRun() = 0; 00079 00084 virtual int GetNumFailures() = 0; 00085 00086 }; 00087 #endif //__WXTESTRUNNER_H__