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

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -