iOS Tests

作者: 流年易逝_李 | 来源:发表于2020-06-18 12:13 被阅读0次

1. 创建项目,带着test;或者后期添加target

2. 继承XCTestCase,实现setUp,tearDown,testExample...

3. 异步处理,尤其是网络请求

1)

 [self waitForExpectationsWithTimeout:15.0 handler:nil];

2) 

XCTestExpectation *expectation = [self expectationWithDescription:@"Request should succeed"];

[expectationfulfill];

4. 修改scheme (test)

相关文章

网友评论

      本文标题:iOS Tests

      本文链接:https://www.haomeiwen.com/subject/plfuxktx.html