没有合适的资源?快使用搜索试试~ 我知道了~
UI-Unit-Tests-iOS:带有模拟视图控制器的生成器情节提要板,仅能够通过UI对UI进行单元测试(模拟业务逻辑)
共99个文件
swift:34个
png:33个
storyboard:9个
需积分: 10 1 下载量 185 浏览量
2021-05-16
15:12:38
上传
评论
收藏 6.01MB ZIP 举报
温馨提示
UI UnitTests iOS 通过模拟业务逻辑,可以通过单元测试非常快速地测试UI的新方法。 这种新方法使用了一个演示图板生成器,该演示图板生成器模拟了演示图板,并替换了从要测试的ViewController继承的模拟的ViewController。 代码覆盖率 这些UI测试不是使用Apple UI测试而是简单的单元测试,因此,例如,如果您想与Jenkins进行持续集成和持续部署,就可以收集代码覆盖率(通过使用Slather)! Apple UI Test不能用笨拙的方式检索它,而只能从xCode检索它。 为什么我们需要一个ViewControllerMock? ,更确切地说是SOLID的D :依赖倒置原理 模拟业务逻辑层以仅在UI上测试行为 可以访问出口并能够对其进行测试,出口需要 :warning: private(set) :warning: 。 覆盖一些能够测试它的方法,例如prepareForS
资源推荐
资源详情
资源评论
收起资源包目录
UI-Unit-Tests-iOS-master.zip (99个子文件)
UI-Unit-Tests-iOS-master
UIUnitTestsIOS.xcodeproj
xcshareddata
xcschemes
UIUnitTestsIOS.xcscheme 4KB
project.xcworkspace
contents.xcworkspacedata 161B
project.pbxproj 51KB
UI-UnitTests-iOSTests
CustomAlertActionMock
CustomAlertActionMock.swift 1KB
Info.plist 701B
About
Mock
AboutMock.storyboard 10KB
AboutViewControllerMock.swift 361B
HumorFaces
Mock
HumorFacesInteractorMock.swift 2KB
HumorFacesViewControllerMock.swift 2KB
HumorFacesMock.storyboard 12KB
HumorFacesUIBehaviorsTests.swift 25KB
Calculator
CalculatorUIBehaviorTests.swift 16KB
Mocks
CalculatorInteractorMock.swift 293B
CalculatorViewControllerMock.swift 1KB
CalculatorMock.storyboard 36KB
Dashboard
DashboardUIBehaviorsTests.swift 3KB
Mock
DashboardViewControllerMock.swift 968B
DashboardMock.storyboard 9KB
DashboardUIElementsTests.swift 3KB
UI-UnitTests-iOS
Script
scriptTest.py 3KB
Info.plist 1KB
AppDelegate.swift 468B
About
About.storyboard 10KB
AboutViewController.swift 709B
HumorFaces
Business Logic
HumorFacesInteractor.swift 3KB
HumorFacesInteractorBoundaries.swift 1KB
HumorFace.swift 794B
Network
NetworkController.swift 4KB
NetworkControllerBoundaries.swift 808B
User Interface
HumorFacesPresenter.swift 3KB
HumorFacesPresenterBoundaries.swift 810B
HumorFaces.storyboard 12KB
HumorFacesViewController.swift 4KB
CustomButton.swift 233B
Calculator
Business Logic
CalculatorInteractorBoundaries.swift 568B
CalculatorInteractor.swift 3KB
User Interface
CalculatorPresenterBoundaries.swift 665B
Calculator.storyboard 36KB
CalculatorPresenter.swift 2KB
CalculatorViewController.swift 4KB
Extensions
UIViewController+Extensions.swift 540B
UIColor+Extensions.swift 789B
Enum+Extensions.swift 1KB
UIView+Extension.swift 694B
Dashboard
en.lproj
Dashboard.strings 460B
Base.lproj
Dashboard.storyboard 9KB
DashboardViewController.swift 1KB
Others
CustomAlertAction.swift 684B
Base.lproj
LaunchScreen.storyboard 2KB
Assets.xcassets
placeholder.imageset
placeholder-2.png 184KB
placeholder.png 184KB
placeholder-1.png 184KB
Contents.json 388B
error_face.imageset
error_face.png 111KB
error_face-2.png 111KB
error_face-1.png 111KB
Contents.json 385B
happy.imageset
happy-1.png 67KB
happy.png 67KB
happy-2.png 67KB
Contents.json 370B
angry.imageset
angry-2.png 215KB
angry-1.png 215KB
Contents.json 370B
angry.png 215KB
sad.imageset
sad-2.png 83KB
sad.png 83KB
Contents.json 364B
sad-1.png 83KB
AppIcon.appiconset
Contents.json 2KB
Contents.json 62B
surprised.imageset
surprised-2.png 72KB
surprised-1.png 72KB
surprised.png 72KB
Contents.json 382B
ModuleFactory.swift 666B
UI-UnitTests-iOS.xcworkspace
contents.xcworkspacedata 278B
Podfile.lock 275B
UIUnitTestsIOS.xcworkspace
xcshareddata
IDEWorkspaceChecks.plist 238B
contents.xcworkspacedata 232B
Podfile 422B
LICENSE 1KB
README.md 8KB
screens
slather_code_coverage_reports_tests.png 170KB
PART4.png 95KB
PART3.png 207KB
PART8.png 89KB
PART2.png 203KB
PART10.png 649KB
PART7.png 65KB
PART5.png 243KB
PART9.png 471KB
xcode_code_coverage.png 63KB
build_phase_run_script.png 561KB
PART1.png 189KB
xcodebuild_html_reports_tests.png 226KB
xcodebuild_tests.png 828KB
PART6.png 288KB
.gitignore 1KB
共 99 条
- 1
资源评论
A玩具爆款孙大帅
- 粉丝: 18
- 资源: 4712
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功