Sha256: 6cdcc87c387c8d3451dd697d61018c0b9ee4fb59fa29414a671dc38f3da9939d
Contents?: true
Size: 959 Bytes
Versions: 1
Compression:
Stored size: 959 Bytes
Contents
# Swiftfake [![Gem Version](https://badge.fury.io/rb/swiftfake.svg)](https://badge.fury.io/rb/swiftfake) Generate test fakes from Swift code. The fakes allow you to: - Verify how many times a function was called - Verify what arguments were received - Return a canned value ## Usage Pass a Swift file path and the fake will be printed to STDOUT: ```bash swiftfake ./app/MySwiftClass.swift ``` You could then pipe the output: ```bash # To clipboard swiftfake ./app/MySwiftClass.swift | pbcopy # To a file swiftfake ./app/MySwiftClass.swift > ./test/FakeMySwiftClass.swift ``` ## Requirements - Ruby 2.1+ (run `ruby -v` to check) - [SourceKitten](https://github.com/jpsim/SourceKitten) (`brew install sourcekitten`) ## Notes This gem is still in an alpha state. Roadmap: - Copy across @import statements from source - Fake Protocol implementations - Implement Bright Futures support - Handling multiple classes/protocols in the Swift source file
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swiftfake-0.2.1 | README.md |