mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 12:26:39 +00:00 
			
		
		
		
	Added support for code coverage checking with gcov and unittests with Google C++ unittest and GMock frameworks. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			No EOL
		
	
	
		
			359 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			No EOL
		
	
	
		
			359 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <gmock/gmock.h>
 | |
| #include <gtest/gtest.h>
 | |
| 
 | |
| 
 | |
| int main(int argc, char** argv) {
 | |
|   // The following line causes Google Mock to throw an exception on failure,
 | |
|   // which will be interpreted by your testing framework as a test failure.
 | |
|   ::testing::GTEST_FLAG(throw_on_failure) = true;
 | |
|   ::testing::InitGoogleMock(&argc, argv);
 | |
| 
 | |
|   return RUN_ALL_TESTS();
 | |
| } |