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

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