Releases: Brightify/Cuckoo
Releases · Brightify/Cuckoo
New Release – 1.0.1
- Fix
any()
not working anymore by itself with optional parameters in functions.
New Release – 1.0.0
Features:
- Generics is now fully supported! This includes generic classes, protocols, and methods.
Dictionary
matching out of the box.- Better closure matching. Now allowing up to 7 parameter closures.
rethrows
functions now work properly.- Classes marked
final
are automatically ignored. - Allow non-optional values to be passed as matchers for
Optional
s just like in normal Swift code. - Add support for inout method parameters.
Fixes:
- Update the
build_generator
script to work with Swift 5. - Fix not being able to put
Optional
into functions acceptingOptional
s. - Accessibility of variables and functions in
public
classes are nowpublic
as well.
New Release – 0.13.0
- Update cocoapods.
- Fix warnings when using Swift 5.0
- Fix errors when using Swift 5.0
- Improve Xcode 10.2 compatibility.
- Update FileKit reference
New Release – 0.12.1
- Add class accessibility support.
- Add support for attributes (e.g.
@available
). - Add support for subimport (e.g.
import struct UICat.Food
). - Add
--clean
option to the run script to always build or download the generator (promptly forget to add its documentation toREADME.md
). - Ignore
final
classes (because we mock by inheritance). - Smaller fixes and improvements in the whole project.
New Release – 0.12.0
- Add first draft of a new Mock initialization DSL.
- Add
enableDefaultImplementation
to protocolMock
. - Reintroduce support for pre-0.11.0 Cuckoo spies.
- Add regular expression
class
andprotocol
matching. - Add glob switch that parses input paths as globs enabling for easier project scaling.
- Build generator by default. Download using
--download [VERSION]
option. - Modify the
run
bash script to allow the user to build rather than download thecuckoo_generator
. - Add a debug flag that generates general info above methods when used.
- Fix escaping closure (crashing in Xcode 10).
New Release – 0.11.3
- Make sure we keep the
cuckoo_generator
in thePods/Cuckoo
dir.
New Release – 0.11.2
- Fix handling of access_token and username in Fastfile.
- Make sure we bundle Swift runtime with the released generator.
- Disable bitcode
New Release – 0.11.0
- Add test for sub protocol method
- The sort of input files occurred to soon * The files input via options are mapped to Path objects then sorted. This actually happened too soon, since the array is then converted to a Set, then converted back to an Array. The Set conversion changes the order (since it is unordered) and those we lost the effect of the sort. I move the sort to the correct place, which is on the outermost Array so that the inputPathValues array is now correctly sorted.
- Upgrade Fastfile and podspec.
run
downloads the latest generator if it's deleted. - Make the script a bit more resilient.
- Fix changelog creating and make commit message ignoring broader.
- Update Gemfile.
- Add initial deployer script for deploying release drafts to github.
- fix(readme): fix typos and grammar
- doc(readme): add precision on custom matchers
- Fix CI-status badge
- Updated readme run script
- Make the bash script safe to use with names that contain spaces.
- Fixes a regression introduced in 96ebbbf * There was an attempt to make the file order deterministic, but the sorting that was added only worked if all mocks were generated in a single file. If generated to a path, which creates a file per mock, the filenames and the file contents did not match. Solution was to sort the set of paths passed in as options instead, moving the sorting a little earlier than before.
- Fix sameInstance(as:) ambiguous reference compile-time error.
- Added test-cases for excluding Classes and Protocols from Mock stub generation
- Added ParameterMatcher for (optional) throwing closures and optionals, e.g. anyThrowingClosure(), anyOptionalThrowingClosure and null() Added Acceptance test for inheritance stubbing and verifying
- Adding support for overloaded method names
- Add a few more tests.
- Change
get
in property verification to method instead of a property. - Remove TemplateEncoder and change Spy behavior.
- Don't test iOS for now.
- Disable signing.
- Remove workspace and improve project setup.
0.6.0
- Added release notes
- Added stub resetting
- Added
thenCallRealImplementation
- Added argument capturing
- Added
verifyNoMoreInteractions
- Added on going stubbing
- Added
thenDoNothing
Developer experience
In this release we added a run script that you can use to easily run Cuckoo generator with ease. We also changed the Cuckoo Generator so that it no longer contains all the different generator versions, which means easier updating and adding new features!