There is a class which provides a set of initXXX methods and some functional methods. It is handy to invoke all the functional tests at runtime when verifying the instance created by all these initXXX methods.
Just like this:
-(void) testEverythingWithInitXXX {
if ( test of self.tests not postfix by 'WithInit.*' ) {
invoke it.
}
}
It is always possible by inspecting the ObjC object at runtime, I'm just wondering if Apple provided any help already in XCTest framework?
Aucun commentaire:
Enregistrer un commentaire