Skip to content

Releases: uber/mockolo

1.1.3

12 Feb 19:07
64c1825
Compare
Choose a tag to compare
  • Supports class mocking via subclassing
  • Supports members guarded by #if macro in protocol and other types
  • Correctly handles keywords in parameters when used outside of the decl

1.1.2

17 Jan 01:19
Compare
Choose a tag to compare
  • Added Cocoapods support (SwiftSyntax usage is disabled for this)
  • Added more language feature support (e.g. subscript)
  • Updated Readme with 'mint install/run' for Mockolo installation

1.1.1

18 Dec 03:45
3832be7
Compare
Choose a tag to compare
  • Added install-script for easier distribution
  • Minor bug fixes
  • Updated docs

1.1.0

06 Dec 01:23
Compare
Choose a tag to compare
  • Added SwiftSyntax (from swift 5.1) parser support which is now a default parser.
  • Added --use-sourcekit arg in the commandline to allow use of SourceKit if needed.
  • Updated type parsing checks for models.
  • It's single-threaded for now due to a crash in SwiftSyntax (SyntaxVisitor:visitChildren) when multi-threaded.
  • Benchmarking shows parsing via SwiftSyntax can be faster (even single-threaded) than via SourceKit multi-threaded:

--

Input: 1.8M LoC with 13K protocols
Output: 0.8M LoC with 11K mock classes

Via SwiftSyntax: 13s (-j1)
Via SourceKit: 46s (-j1), 22s (-j2), 12s (-j6), 10s (-j12)

(Measured on MBP-15, 6-core, 2018)

--

1.0.0

03 Sep 21:51
Compare
Choose a tag to compare

First release - Mockolo: a commandline mock generation tool using MockoloFramework

  • Uses Sourcekit parser
  • Uses concurrency for faster performance
  • Uses Data type instead of String for optimizations
  • Supports various edge cases, e.g. associatedtype via annotation arguments
  • Supports mockgen for an entire dependency tree or per module