Skip to content

Releases: Brightify/Cuckoo

New Release – 1.0.1

15 May 15:51
Compare
Choose a tag to compare
  • Fix any() not working anymore by itself with optional parameters in functions.

New Release – 1.0.0

14 May 16:47
Compare
Choose a tag to compare

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 Optionals 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 accepting Optionals.
  • Accessibility of variables and functions in public classes are now public as well.

New Release – 0.13.0

06 May 08:31
Compare
Choose a tag to compare
  • 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

23 Feb 15:39
Compare
Choose a tag to compare
  • 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 to README.md).
  • Ignore final classes (because we mock by inheritance).
  • Smaller fixes and improvements in the whole project.

New Release – 0.12.0

09 Oct 12:11
Compare
Choose a tag to compare
  • Add first draft of a new Mock initialization DSL.
  • Add enableDefaultImplementation to protocol Mock.
  • Reintroduce support for pre-0.11.0 Cuckoo spies.
  • Add regular expression class and protocol 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 the cuckoo_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

05 Apr 15:14
Compare
Choose a tag to compare
  • Make sure we keep the cuckoo_generator in the Pods/Cuckoo dir.

New Release – 0.11.2

04 Apr 09:27
Compare
Choose a tag to compare
  • 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

23 Mar 20:04
Compare
Choose a tag to compare
  • 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

02 Jul 13:13
Compare
Choose a tag to compare
  • Added release notes
  • Added stub resetting
  • Added thenCallRealImplementation
  • Added argument capturing
  • Added verifyNoMoreInteractions
  • Added on going stubbing
  • Added thenDoNothing

Developer experience

15 Jun 09:13
Compare
Choose a tag to compare

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!