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

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -