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

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? -