jdortiz/EvilTalentSwift2

语言: Swift

git: https://github.com/jdortiz/EvilTalentSwift2

我在Realm演讲的演示代码(2015-08-18)。
Demo code for my talk at Realm (2015-08-18).
README.md (中文)

Swift 2中的单元测试 - 前后故事

我在Realm谈话的演示代码

进入单元测试?如果是这样的话,你可能已经发现自己处于Swift单元测试的黑暗小巷中。如果您还没有涉足单元测试,那么这次演讲将是一个很好的机会,可以开始并为您的单元测试超级大国充电。在这里,我向您展示了使用Swift进行单元测试的三个场景,并为每个场景提供实用建议以及最近推出的Swift版本2的含义。

  • 演示1:可测试
  • 演示2:单元测试错误处理代码
  • 演示3:测试覆盖率

请享用!

豪尔赫

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Unit Testing in Swift 2 - The Before & After Story

Demo code for my talk at Realm

Into unit testing? If so you've probably found yourself in the dark alleys of Swift unit testing. If you haven't yet dabbled in unit testing, this talk will be an awesome opportunity to get started and charge up your unit testing superpowers. Here I show you three scenarios of unit testing with Swift, and provide you with practical advice for each of them and the implications of the recently introduced version 2 of Swift.

  • Demo 1 : Testable
  • Demo 2 : Unit testing error handling code
  • Demo 3 : Test coverage

Enjoy!

Jorge