seanhenry / Xcode-File-Templates

Swift templates to help for writing tests and mocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

Manual

Copy the Swift folder this directory: ~/Library/Developer/Xcode/Templates/File Templates/

Git

$ cd ~/Library/Developer/Xcode/Templates/File\ Templates/ $ git clone https://github.com/seanhenry/Xcode-File-Templates.git

Swift Templates

Contains a Swift template for classes, structs, enums, extensions and protocols.

Swift Type Template

Unit Testing Templates

Swift Unit Test Class

Asks for the class you wish to test.

Swift Unit Test Template Window

Builds a template test class including the @testable import for your module.

Swift Unit Test Template

Swift Mock Class

Asks for the class you wish to mock.

Swift Mock Template Window

Builds a subclass for you to stub and a mock class inheriting from the stub.

Swift Mock Template

About

Swift templates to help for writing tests and mocks.