Releases: uber/mockolo
Releases · uber/mockolo
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
- 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
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