Releases: Kolos65/Mockable
Releases · Kolos65/Mockable
Mockable 0.0.12
What's Changed
Full Changelog: 0.0.11...0.0.12
Mockable 0.0.11
What's Changed
- Keep escaping closure attribute in mocks in #71
- Support nonisolated keyword in #80
- Use fully qualified identifiers in mocks to fix name collisions in #81
- Protocols inheriting from
NSObjectProtocol
will now result inNSObject
subclass mocks - Support Swift Testing and remove the
MockableTest
target by adding swift-issue-reporting in #82
Breaking Changes
- The
Mockable
protocol (used for auto-mocking in relaxed mode) was renamed toMocked
to avoid collision with the module name in #81 - The need for the
MockableTest
test support target was eliminated by adding swift-issue-reporting in #82
Full Changelog: 0.0.10...0.0.11
Mockable 0.0.10
What's Changed
- Add support for actor protocols by @Kolos65 in #62
- Point SwiftSyntax package at swiftlang org by @ianthetechie in #66
- Add availability to mocks when parametrized protocols found in requirements by @Kolos65 in #68
New Contributors
- @ianthetechie made their first contribution in #66 🚀
Full Changelog: 0.0.9...0.0.10
Mockable 0.0.9
What's Changed
- Depend on exact SwiftLint version by @Kolos65 in #50
- Support all swift-syntax versions up to 510 by @Kolos65 in #51
- Remove back tick from names in enum case specifiers by @Kolos65 in #52
- Excluding private modifiers for mock members by @hainayanda in #49
- Support sendable conformance by @Kolos65 in #58
Full Changelog: 0.0.8...0.0.9
Mockable 0.0.8
What's Changed
- Rename MockService to MockableService to avoid name collision by @gaelfoppolo in #43
New Contributors
- @gaelfoppolo made their first contribution in #43
Full Changelog: 0.0.7...0.0.8
Mockable 0.0.7
What's Changed
Full Changelog: 0.0.6...0.0.7
Mockable 0.0.6
What's Changed
- Add async verification support by @hainayanda in #37
- Extend relaxed mode to custom types by @Kolos65 in #36
Breaking Changes
- Literal expressible type based mocker policies removed and replaced by
.relaxedMockable
getterCalled(count:)
andsetterCalled(count:)
renamed togetCalled(_:)
andsetCalled(_:)
called(count:)
renamed tocalled(_:)
New Contributors
- @hainayanda made their first contribution in #37
Full Changelog: 0.0.5...0.0.6
Mockable 0.0.5
What's Changed
- Major refactor of the macro implementation in #32
- Added relaxed mode to enable implicit mocking of voids, optionals and more in #34
Fixes
Full Changelog: 0.0.4...0.0.5
Mockable 0.0.4
What's Changed
- Add instructions to the README to explain how to use it with Tuist by @pepicrft in #21
- Add support for attributed requirements (like
@available(iOS 15, *)
) in #27 - Refactor mocker so the order of return values is not changed in #27
- Move
given()
andwhen()
helpers from MockableTest to Mockable so they can be used in non-test targets (for example in SwiftUI previews) in #27
Breaking Changes
- Explicit mocking of void functions is now required, see details in #28
New Contributors
Full Changelog: 0.0.3...0.0.4
Mockable 0.0.3
What's Changed
- Updated Package.swift manifest to exclude dev dependencies at package user side in #5
- Added workflows for testing PRs in #6
- Renamed Scope enum to MockerScope to avoid name-collisions in #20
Full Changelog: 0.0.2...0.0.3