ShannonChenCHN/iOSDevLevelingUp

TDD 和单元测试、UI 自动化测试

ShannonChenCHN opened this issue · 2 comments

  • TDD
  • 单元测试
    • 什么是单元测试
    • 为什么要做单元测试
    • 应用场景
    • 如何做单元测试
  • 黑盒测试
  • 白盒测试
  • 自动化测试

单元测试

  • 基础
    • Defining Test Scope/What to Test
    • Two types of unit test contexts
      • App tests
      • Library tests
    • XCTest 框架
      • Writing Test Classes and Methods
        • Test Targets, Test Bundles, and the Test Navigator
        • Creating a Test Class
        • Test Class Structure
          • Setup and Teardown
          • Flow of Test Execution
        • Writing Test Methods
      • XCTest Assertions
      • given-when-then
      • Writing Tests of Asynchronous Operations
      • Writing Tests with Swift
        • @testable
    • Running Tests and Viewing Results
    • Debugging Tests
  • stub 和 mock 的区别
  • 最佳实践(FIRST 原则)
    • Fast
    • Independent/Isolated
    • Repeatable
    • Self-validating
    • Timely
  • Performance Testing
  • Automating the Test Process(Continuous Integration/Continuous Delivery)
  • User Interface Testing
  • Mock 框架
  • 示例代码

问题讨论

参考: