Sha256: 489da801edd8f4d6f97735ff8cab397acd8ad269db3586e0d92e856ed3249f29
Contents?: true
Size: 1012 Bytes
Versions: 1
Compression:
Stored size: 1012 Bytes
Contents
# Swiftfake [](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 ## Creating fakes 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 ``` ## Using the fakes ## 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 - Template overrides - 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.3.0 | README.md |