Boilerplate-free mocking framework for Swift!
It's finally here, the big moment.
Version 2.0 brings the incredible performance of SwiftSyntax to the table along with generator parallelization and easier project configuration using TOML. Caching is planned next, but I didn't want to blow the scope out of proportion.
Contributing should be easier than ever thanks to the streamlined repository setup and a fast feedback loop with any changes done to the source code, be it runtime or generator.
This release also contains fixes for a lot of smaller issues that have irked me but were either impossible or really hard to fix without rewriting the generator.
IMPORTANT: If you're switching to this version, make sure to use the new run
script that comes bundled. There are some notable changes like the binary name changing as well as making sure that the generator is the same version as the library. As always you're free to change it or not use it at all, it's just a simple generator manager.
NOTE: This project is quite big and even though I cut down most of the unnecessary stuff while keeping the functionality, there may be some things that have broken due to tests not covering every possible use-case. If you do run into a problem that was introduced in this version, please let me know. Thank you!
Generator pre-release for beta testing. Since the runtime part has hardly changed, if you want to help me test this release, all you need to do is download the cuckoonator
binary below, put it at the root of your project and create Cuckoofile.toml
alongside it. Take a look at the README for some guidance on how to structure the TOML configuration file. 🙂
Then just run the binary from the terminal (or as a build phase script) and it will do the rest.
I've also created a discussion for this release where you can comment on its speed or correctness, join it down below. 👇
NOTE: Even though I've tried testing all supported package managers, this version is the first to be completely converted to using Tuist and as such something could have broken. Open an issue if a regression occurs. 🙂
OCMQuantifier
in objcVerify
function. (thanks, @ajpallares!)