testing - @BeforeClass and @AfterClass in Xcode XCTests -
in junit testing, there notion of being able run code before or after tests run. see in xcode, however, -setup , -teardown, happen before , after every test.
is there xcode equivalent @beforeclass , @afterclass in junit?
there following methods provided xctestcase runs before , after test in test class executed:
+ (void)setup;
setup method called before invocation of test method in class.
+ (void)teardown;
teardown method called after invocation of every test method in class.
Comments
Post a Comment