objective c - Get name of test method in setUp (Xcode) -
i want append message log includes name of test method run. want in setup method in test superclass don't have repeated code everywhere.
i wanted this:
- (void) setup { [super setup]; [self log:@nsstringfromselector(_cmd)]; }
however, _cmd gives "setup" string, whereas want "test00testthething"
is there way this?
i found this:
self.name
however, gives me "-[appuitests test00testthething]"
Comments
Post a Comment