Releases: mockk/mockk
Releases Β· mockk/mockk
1.14.2
What's Changed
- Change mockk configuration paths to test sourceSet by @TWiStErRob in #1378
- Use redefine if mockkStatic is used (fix candidate for #1375) by @sgerke-1L in #1376
Full Changelog: 1.14.0...1.14.2
1.14.0
What's Changed
- Update the kdoc of verifyAll to describe its behavior correctly by @harel-biton in #1363
- Fix returning result values by @burnoo in #1352
- fix: ensure confirmVerified is isolated per test by @rsvinicius in #1367
- Do not generate visibility bridge for package-private default methods (fixes #1118) by @sgerke-1L in #1366
- fix: handle fallback to default constructor parameters in constructed⦠by @VitalyVPinchuk in #1370
New Contributors
- @harel-biton made their first contribution in #1363
- @burnoo made their first contribution in #1352
- @rsvinicius made their first contribution in #1367
- @sgerke-1L made their first contribution in #1366
- @VitalyVPinchuk made their first contribution in #1370
Full Changelog: 1.13.17...1.14.0
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