Releases: mockk/mockk
Releases ยท mockk/mockk
1.13.17
What's Changed
- Fix(Issue #1333): Bug fix for the issue with MockK 1.13.16 Wraps Results Objects Twice by @kpadhiamex in #1334
- Fix (issue# 1329) parallel testing for unmockkAll by @kpadhiamex in #1335
- [#1304] feat: Restrict mocking of certain classes and add configuration option by @devtaebong in #1340
- Update README.md - Clarify that private fields cannot be mocked by @p4ulor in #1347
- Added new property "failOnSetBackingFieldException" to fail test if a backing field could not be set by @cgm-aw in #1349
- Fix compilation error in constructedWith docs by @TWiStErRob in #1354
New Contributors
- @devtaebong made their first contribution in #1340
- @p4ulor made their first contribution in #1347
- @cgm-aw made their first contribution in #1349
- @TWiStErRob made their first contribution in #1354
Full Changelog: 1.13.16...1.13.17
1.13.16
What's Changed
- Fix( Issue #1073): Bug fix for the issue with mocking value classes with coEvery by @kpadhiamex in #1332
Full Changelog: 1.13.14...1.13.16
1.13.14
What's Changed
- fix(1308): Handle nullable complex and nested value classes by @VasilisDrettas-tomtom in #1314
- Fix(Issue no. 1330) for Relaxed Mocking Value When Property is Nested Value Class by @kpadhiamex in #1331
New Contributors
- @kpadhiamex made their first contribution in #1331
Full Changelog: 1.13.13...1.13.14
1.13.13
What's Changed
- Kotlin 2.0.0 by @SimonMarquis in #1255
- Don't unbox primitive value class returned by suspend function by @SackCastellon in #1253
- Fix RequireParallelTesting Annotation by @thamp59 in #1265
- Enable clearAllMocks to clear only thread-local mocks. by @xzhang-brex in #1276
- build(issue 1280): bump toolchain-jvm version to 17 by @Kulesko in #1281
- fix(1284): do not transform static constructor by @LitterSun in #1285
- Remove unused loggers by @Sandhya2902 in #1011
- chore: converting functions to expression bodies and minor function refactoring by @casplattel in #1260
- Add anyNullable by @NWuensche in #1287
- fix(813): Handle nullable value classes by @VasilisDrettas-tomtom in #1295
- Improve error message on unexpected calls count by @MGaetan89 in #1298
- Run
unmockkAll
after each JUnit 5 test by @erikhuizinga in #1297
New Contributors
- @SackCastellon made their first contribution in #1253
- @thamp59 made their first contribution in #1265
- @xzhang-brex made their first contribution in #1276
- @Kulesko made their first contribution in #1281
- @LitterSun made their first contribution in #1285
- @VasilisDrettas-tomtom made their first contribution in #1295
- @MGaetan89 made their first contribution in #1298
Full Changelog: 1.13.11...1.13.13
1.13.12
What's Changed
- Kotlin 2.0.0 by @SimonMarquis in #1255
- Don't unbox primitive value class returned by suspend function by @SackCastellon in #1253
- Fix RequireParallelTesting Annotation by @thamp59 in #1265
- Enable clearAllMocks to clear only thread-local mocks. by @xzhang-brex in #1276
New Contributors
- @SackCastellon made their first contribution in #1253
- @thamp59 made their first contribution in #1265
- @xzhang-brex made their first contribution in #1276
Full Changelog: 1.13.11...1.13.12
1.13.11
What's Changed
- Fix wasNotshould throw exception when called on non mocked object by @Gosunet in #1174
- Fix cannot mock value class for class property in 1.13.10 by @ZhaohuaZeng-at in #1230
- Introduce
verifyCount
DSL by @T45K in #1234 - Fix parallel testing flag by @Evenprime in #1238
- Implement
clearStaticMockk
for KFunction and KProperty by @krocard in #1239 - [CONTRIBUTING.md] Suggest running
gradle check
before opening a PR by @krocard in #1240
New Contributors
- @Gosunet made their first contribution in #1174
- @ZhaohuaZeng-at made their first contribution in #1230
- @T45K made their first contribution in #1234
- @Evenprime made their first contribution in #1238
- @krocard made their first contribution in #1239
Full Changelog: 1.13.10...1.13.11
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< 8000 /a> 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