Added class name to Obj-C test case

This commit is contained in:
Phil Nash
2013-02-19 08:34:30 +00:00
parent 51c69dbc33
commit 7455c449ad
2 changed files with 6 additions and 2 deletions

View File

@@ -92,8 +92,9 @@ namespace Catch {
std::string testCaseName = methodName.substr( 15 );
std::string name = Detail::getAnnotation( cls, "Name", testCaseName );
std::string desc = Detail::getAnnotation( cls, "Description", testCaseName );
const char* className = class_getName( cls );
getMutableRegistryHub().registerTest( TestCaseInfo( new OcMethod( cls, selector ), name.c_str(), desc.c_str(), SourceLineInfo() ) );
getMutableRegistryHub().registerTest( TestCaseInfo( new OcMethod( cls, selector ), className, name.c_str(), desc.c_str(), SourceLineInfo() ) );
noTestMethods++;
}
}