- Add scoped confirmVerified overloads for callables (KFunction and KProperty)
- Support MockKAnnotation.useDependencyOrder for JUnit 5
- Allow updating settings from code
- Add currentThread filter and excluded mocks to clearAllStubsFromMemory
- Support new Kotlin annotation defaulting rule for @InjectMockKs
- Add context parameters support module
- Added SameInstanceMatcher to handle an issue with equals method when using EqMatcher along with a mock to an object
- Resolve @InjectMockKs dependency order for interface
- Resolve @InjectMockKs dependency order for list injection
- Extract native lib from APK when not on filesystem (AGP 8.5+)
- Support OpenJ9 in JvmAutoHinter
What's Changed
- fix: added SameInstanceMatcher to handle an issue with equals method when using EqMatcher along with a mock to an object by @DOssaA in https://github.com/mockk/mockk/pull/1508
- Add scoped confirmVerified overloads for callables (KFunction and KProperty) by @DOssaA in https://github.com/mockk/mockk/pull/1513
- feat: support MockKAnnotation.useDependencyOrder for JUnit 5 by @ilia1243 in https://github.com/mockk/mockk/pull/1515
- Allow updating settings from code by @Yentis in https://github.com/mockk/mockk/pull/1517
- Add currentThread filter and excluded mocks to clearAllStubsFromMemory by @evgenru in https://github.com/mockk/mockk/pull/1519
- Support new Kotlin annotation defaulting rule for @InjectMockKs by @ZzAve in https://github.com/mockk/mockk/pull/1525
- feat(dsl): Add context parameters support module (#1431) by @faraz152 in https://github.com/mockk/mockk/pull/1521
- fix: resolve @InjectMockKs dependency order for interface by @neungs-2 in https://github.com/mockk/mockk/pull/1526
- fix: resolve @InjectMockKs dependency order for list injection by @ilia1243 in https://github.com/mockk/mockk/pull/1527
- fix: extract native lib from APK when not on filesystem (AGP 8.5+) by @snowykte0426 in https://github.com/mockk/mockk/pull/1529
- fix: support OpenJ9 in JvmAutoHinter by @hspedro in https://github.com/mockk/mockk/pull/1530
New Contributors
- @DOssaA made their first contribution in https://github.com/mockk/mockk/pull/1508
- @ilia1243 made their first contribution in https://github.com/mockk/mockk/pull/1515
- @Yentis made their first contribution in https://github.com/mockk/mockk/pull/1517
- @evgenru made their first contribution in https://github.com/mockk/mockk/pull/1519
- @ZzAve made their first contribution in https://github.com/mockk/mockk/pull/1525
- @faraz152 made their first contribution in https://github.com/mockk/mockk/pull/1521
- @hspedro made their first contribution in https://github.com/mockk/mockk/pull/1530
Full Changelog: https://github.com/mockk/mockk/compare/1.14.9...v1.14.11