MockGenerator Versions Save

An AppCode plugin to help generate Swift test doubles automatically.

v20

1 year ago

v19

1 year ago
  • Fixes breaking changes in AppCode 2022.1.3

v18

3 years ago
  • Fixes breaking changes in AppCode 2020.3
  • Is now available in other IDEs with the Swift plugin available.

v17

4 years ago

v16

4 years ago

Updates the plugin to use the new APIs in 2019.2

Previous versions of the plugin will not work with AppCode 2019.2+

v15

5 years ago
  • Can now generate a 'partial spy'. A partial spy offers the option to forward invocations to the original implementation. Only works for test doubles which inherit from a class.
  • Dummies now generate a fatal error when a default value cannot be derived since dummies are only really meant as placeholders.
  • Tuple argument labels are preserved and accessible when using the invoked parameter properties.
  • Supports AppCode 2018.2.4.

v14

6 years ago
  • 'Generate mock' has been renamed to 'Generate spy' to fit in better with test double naming.
  • Can now generate a simpler test double when only stubbing is required. Choose 'Generate stub'.
  • Can now generate the simplest possible test double; a dummy. Choose 'Generate dummy'.

v13

6 years ago
  • Supports multiple properties in the same declaration.
  • Improved inferred types in properties.
  • Improved error handling.

Breaking changes

  • Closures with no arguments are no longer called automatically. You must now set shouldInvokeMethodClosure to true.

v12

6 years ago
  • Compiles against AppCode 181.4668 to fix no method error.
  • Supports methods that use rethrows.

v11

6 years ago
  • Transforms generic method parameters and return values to Any type.
  • Sends anonymous usage statistics.