Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Basic.h

Go to the documentation of this file.
00001 /*
00002  *  CUnit - A Unit testing framework library for C.
00003  *  Copyright (C) 2004  Jerry St.Clair
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public
00016  *  License along with this library; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 /*
00021  *  Interface for simple test runner.
00022  *
00023  *  Created By      : Jerry St.Clair  (11-Aug-2004)
00024  *  Comment         : Initial implementation of basic test runner interface
00025  *  EMail           : jds2@users.sourceforge.net
00026  *
00027  */
00028 
00036 #ifndef _CUNIT_BASIC_H
00037 #define _CUNIT_BASIC_H
00038 
00039 #include "CUnit.h"
00040 #include "TestDB.h"
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00047 typedef enum {
00048   CU_BRM_NORMAL = 0,  
00049   CU_BRM_SILENT,      
00050   CU_BRM_VERBOSE      
00051 } CU_BasicRunMode;
00052 
00053 CU_ErrorCode    CU_basic_run_tests(void);
00054 CU_ErrorCode    CU_basic_run_suite(CU_pSuite pSuite);
00055 CU_ErrorCode    CU_basic_run_test(CU_pSuite pSuite, CU_pTest pTest);
00056 void            CU_basic_set_mode(CU_BasicRunMode mode);
00057 CU_BasicRunMode CU_basic_get_mode(void);
00058 void            CU_basic_show_failures(CU_pFailureRecord pFailure);
00059 
00060 #ifdef __cplusplus
00061 }
00062 #endif
00063 #endif  /*  _CUNIT_BASIC_H  */
00064 

Generated on Thu Apr 28 12:36:09 2005 for CUnit by  doxygen 1.3.9.1