mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Added className to TestCase in Obj-C
This commit is contained in:
		@@ -92,8 +92,9 @@ namespace Catch {
 | 
				
			|||||||
                        std::string testCaseName = methodName.substr( 15 );
 | 
					                        std::string testCaseName = methodName.substr( 15 );
 | 
				
			||||||
                        std::string name = Detail::getAnnotation( cls, "Name", testCaseName );
 | 
					                        std::string name = Detail::getAnnotation( cls, "Name", testCaseName );
 | 
				
			||||||
                        std::string desc = Detail::getAnnotation( cls, "Description", testCaseName );
 | 
					                        std::string desc = Detail::getAnnotation( cls, "Description", testCaseName );
 | 
				
			||||||
 | 
					                        const char* className = class_getName( cls );
 | 
				
			||||||
                        
 | 
					                        
 | 
				
			||||||
                        getMutableRegistryHub().registerTest( makeTestCase( new OcMethod( cls, selector ), "", name.c_str(), desc.c_str(), SourceLineInfo() ) );
 | 
					                        getMutableRegistryHub().registerTest( makeTestCase( new OcMethod( cls, selector ), className, name.c_str(), desc.c_str(), SourceLineInfo() ) );
 | 
				
			||||||
                        noTestMethods++;
 | 
					                        noTestMethods++;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user