Releases: mockk/mockk
Releases Β· mockk/mockk
1.13.10
What's Changed
- Add support to nested value classes by @rotilho in #1202
- Fix callOriginal on default interface method by @flapenna in #1203
- Only unbox value class answers when appropriate by @jselbo in #1204
- Fix capture using mutable list of value class by @ath0s in #1209
- Updates documentation to include example access error workaround for Android users by @JakeSteam in #1211
New Contributors
- @rotilho made their first contribution in #1202
- @jselbo made their first contribution in #1204
- @ath0s made their first contribution in #1209
- @JakeSteam made their first contribution in #1211
Full Changelog: 1.13.9...1.13.10
1.13.9
What's Changed
- Remove AllOpen plugin from Android libraries by @SimonMarquis in #1164
- Enforce reproducible builds by @SimonMarquis in #1162
- Fix unit tests errors by using
slf4jOrJulLogging()
by @SimonMarquis in #1166 - Remove KAPT from Android libraries by @SimonMarquis in #1163
- JVM 1.8 source compatibility by @jeffdgr8 in #1161
- Specify unique
android.namespace
to resolve warnings by @kubode in #1181 - Add scoped mock documentation by @kshired in #1175
- Upgrade Gradle to 8.4 by @geekiyer in #1184
- Fixes infinite recursion when stubbing a fun that returns value class by @OitoH in #1176
- Prevent kover setup failure without Android SDK by @milgner in #1193
- Support value classes for non-primitive types by @milgner in #1192
- Fix StackOverflowError calling method on spy of class with generic base class by @flapenna in #1195
New Contributors
- @jeffdgr8 made their first contribution in #1161
- @kshired made their first contribution in #1175
- @OitoH made their first contribution in #1176
- @flapenna made their first contribution in #1195
Full Changelog: 1.13.8...1.13.9
v1.13.8
What's Changed
- Bump googleapis from 20.2.0 to 59.0.0 in /cloud-badge by @dependabot in #482
- Minor performance improvements to MockInjector by @k163377 in #1134
- Improve log message by @marcelstoer in #1117
- Update README.md by @iainism in #1140
- Update Android test targets by @LeonRa in #1146
- Fix
IncompatibleClassChangeError
in Android instrumentation test (#1035) by @LeonRa in #1145 - Update Gradle and Android dependencies by @SimonMarquis in #1105
- Update byte-buddy 1.14.6 by @SimonMarquis in #1149
- Remove unused
androidTools
inDeps.kt
by @SimonMarquis in #1150 - Update Kotlin 1.9.10 by @SimonMarquis in #1148
- Update KotlinX Kover 0.7.3 by @SimonMarquis in #1152
- Remove Kotlin-IR from CI matrix by @SimonMarquis in #1153
- Update Dokka 1.9.0 by @SimonMarquis in #1151
- Fix Kotlin version override in tests by @SimonMarquis in #1154
- Use new Kotlin logo by @Goooler in #1156
- Swap expected/actual in
KotlinVersionOverrideTest.kt
by @SimonMarquis in #1157 - Reduce the use of spread operator to improve performance by @k163377 in #1143
- update Kotlin and Java Toolchain properties, and setting them in CI by @aSemy in #1056
- Fix
dokkaJavadoc
publishing task by @SimonMarquis in #1160
New Contributors
- @dependabot made their first contribution in #482
- @k163377 made their first contribution in #1134
- @marcelstoer made their first contribution in #1117
- @LeonRa made their first contribution in #1146
Full Changelog: 1.13.7...1.13.8
V1.13.7
What's Changed
- Amend "Top Level functions" by @polarene in #1067
- Fix error when mocking abstract method implementation by @steffandroid in #1081
- Make slf4j an optional dependency by @ansman in #1091
- Add Korean guides and articles in README.md by @devkuma in #1097
- Inject mocks via constructor to avoid lateinit var by @kkurczewski in #1106
- Issue 954: @MockKExtension.CheckUnnecessaryStub annotation is applied⦠by @bboeck in #1099
- chore: converting functions to expression bodies by @casplattel in #1104
- Update dexmaker version to 2.28.3 for Android 14 support by @kurteous in #1107
- Issue 963: Unnecessary stubbings detected - false positive by @bboeck in #1108
- Add
fun <T> MockKMatcherScope.any(KClass<T>): T
by @ghackett in #1005 - 1122(docs): fix header for
clearStaticMockk
by @wallind in #1123 - Fix grammar in Ukraine support message by @BirdHowl in #1125
- Issue 293: support capture nullable with slot by @stengvac in #1109
- update documentation in README.md by @alexferreiradev in #1127
New Contributors
- @steffandroid made their first contribution in #1081
- @devkuma made their first contribution in #1097
- @bboeck made their first contribution in #1099
- @casplattel made their first contribution in #1104
- @kurteous made their first contribution in #1107
- @ghackett made their first contribution in #1005
- @wallind made their first contribution in #1123
- @BirdHowl made their first contribution in #1125
- @stengvac made their first contribution in #1109
- @alexferreiradev made their first contribution in #1127
Full Changelog: 1.13.5...1.13.7
V1.13.5
What's Changed
- Return the configured answers when no answer found by @maeserichar in #1032
- Recognize atLeast = 0 when mocked methods is never called by @hfxbse in #970
- Update class declaration name to match with test class by @Sandhya2902 in #1044
- Update to Junit 5 by @Sandhya2902 in #1045
- Issue #997 - Simulate garbage collected proxy by @ygaller in #1052
- Enable Gradle build scan publishing by @Goooler in #1060
- Added the "Top Level functions" section by @polarene in #1061
- corrected incongruent code in "Object mock" by @polarene in #1063
- Kotlin 1.8.20 by @SimonMarquis in #1047
New Contributors
- @maeserichar made their first contribution in #1032
- @hfxbse made their first contribution in #970
- @ygaller made their first contribution in #1052
- @Goooler made their first contribution in #1060
Full Changelog: v1.13.4...1.13.5
V1.13.4
What's Changed
- Remove redundant spread (*) operator by @SimonMarquis in #986
- Inline mocked subclass of sealed class along with the sealed class itself by @m-burst in #988
- Document InaccessibleObjectException/IllegalAccessException on JDK 16+ with solution by @sergey-volkov-lm in #965
- fix: [#989] Slf4J 2.0+ Support by @Slava-Miligoulo-Target in #990
- Fixes #647 by allowing
classBeingRedefined
to benull
by @gmazzo in #985 - bump Gradle to 7.6 by @aSemy in #992
- bump Kover to 0.6.1 by @aSemy in #993
- Code cleanup by @aSemy in #976
- Update ByteBuddy to 1.12.20 by @ansman in #1002
- Customize jobs name to make the matrix values more explicit by @SimonMarquis in #1004
- Replaced with fully qualified imports by @Sandhya2902 in #1006
- Update to Junit test by @Sandhya2902 in #1007
- Update to Junit5 from Junit4 by @Sandhya2902 in #1009
- Updated with right class name in logger by @Sandhya2902 in #1010
- Don't call match an extra time during verification by @camhashemi in #1017
- #1013 uncouple proxy objects from cancellable to make proxy available⦠by @bakomchik in #1018
- Update Kotlin to 1.8.0 by @aSemy in #1023
- Edit RecordingStateTest, CommonCallRecorderTest by @bossm0n5t3r in #1028
- Edit CapturingGenericArgumentsTest by @bossm0n5t3r in #1029
- De-duplicate ProxyMaker by @aSemy in #1025
New Contributors
- @sergey-volkov-lm made their first contribution in #965
- @Slava-Miligoulo-Target made their first contribution in #990
- @ansman made their first contribution in #1002
- @Sandhya2902 made their first contribution in #1006
- @camhashemi made their first contribution in #1017
- @bakomchik made their first contribution in #1018
Full Changelog: 1.13.3...v1.13.4
V1.13.3
What's Changed
- Add
Awaits
extensions similar toRuns
to await suspend functions until cancelled by @SimonMarquis in #927 - Upgrade Kotlin to stable 1.7.20 in GitHub workflow by @SimonMarquis in #940
- Add missing test annotation to LambdaTest by @bossm0n5t3r in #946
- Fix verifier logic for slots and different matchers by @m-burst in #951
- Fix InstantiationError when using any() where a sealed type is expected by @cliffred in #939
- Adding throwsMany exception by @daniel-dios in #955
- Add more doc comments with samples by @NotWoods in #958
- added basic jitpack config by @hduerkop in #962
- add kotlin 1.8-Beta to the test matrix by @aSemy in #974
- bump bytebuddy and objenesis by @aSemy in #975
- Update README.md to include note about 2-year-old 'known issue' for spy and suspend function by @iainism in #979
New Contributors
- @SimonMarquis made their first contribution in #927
- @bossm0n5t3r made their first contribution in #946
- @m-burst made their first contribution in #951
- @cliffred made their first contribution in #939
- @daniel-dios made their first contribution in #955
- @NotWoods made their first contribution in #958
Full Changelog: 1.13.2...1.13.3
1.13.2
What's Changed
- update dependencies in readme to reflect new multiplatform structure by @aSemy in #926
- Properly handle sealed classes with Kotlin 1.7 and JDK 17 by @stuebingerb in #916
- add jdk 19 to workflow test matrix by @aSemy in #933
New Contributors
- @stuebingerb made their first contribution in #916
Full Changelog: 1.13.1...1.13.2
1.13.1
New major release, mainly because the dependency to be included in gradle/maven files has changed from io.mockk:mockk
to io.mockk:mockk-<platform>
, where platform is either jvm
or android
.
What's Changed
Full Changelog: v1.12.8...1.13.1
V1.12.8
Big thanks to @aSemy, @qoomon and @kubode for investigating and fixing the bugs introduced in v1.12.7 and further improving the library!
What's Changed
- fix: handle isValue exceptions by @qoomon in #890
- Fix Android Instrumentation dispatcher.jar inclusion by @aSemy in #899
- Standardise JVM target to be 1.8 by @aSemy in #900
- introduce Kotlinx Benchmark tests (copied from #763) by @aSemy in #904
- try reverting Android minSdk to 21 by @aSemy in #901
- expose more mockk projects as API dependencies by @aSemy in #905
- make Java source code target jvm 8 by @aSemy in #907
- Fix an issue that Android Instrumentation Test fails by @kubode in #895
- use the official Gradle GHA by @aSemy in #914
- De-duplicate
ValueClassSupport
by @aSemy in #913 - add 1.7.20-RC to test matrix by @aSemy in #918
Full Changelog: 1.12.7...v1.12.8