-
-
Notifications
You must be signed in to change notification settings - Fork 331
Home
Oleksiy Pylypenko edited this page Jan 27, 2019
·
20 revisions
- git clone git@github.com:mockk/mockk.git
- install Android SDK (optional)
- Open in IntelliJ IDEA
Most of MockK implementation is based on the multi-platform code. Few attempts were made to extend it to JS and Native platforms, but so far only JVM and AIT(Android instrumented test) are supported.
-
io.mockk:mockk (mockk/jvm)
JVM MockK implementation-
io.mockk:mockk-dsl-jvm (dsk/jvm)
JVM support functions for DSL -
io.mockk:mockk-common (mockk/common)
common MockK implementation-
io.mockk:mockk-dsl (dsl/common)
common MockK DSL interface
-
io.mockk:mockk-dsl (dsl/common)
-
io.mockk:mockk-agent-jvm (agennt/jvm)
call interception for JVM-
io.mockk:mockk-agent-common (agent/common)
common call interception code(Android and JVM) -
io.mockk:mockk-agent-api (agent/common)
common API(Android and JVM) for call interception -
org.objenesis:objenesis (2.6)
library to instantiate objects -
net.bytebuddy:byte-buddy (1.9.3)
library to modify byte-code -
net.bytebuddy:byte-buddy-agent (1.9.3)
library to modify byte-code on flight
-
io.mockk:mockk-agent-common (agent/common)
-
io.mockk:mockk-dsl-jvm (dsk/jvm)
-
io.mockk:mockk-android (mockk/android)
Android implementation is based on JVM(with JVM agent exclusion)-
io.mockk:mockk (mockk/jvm)
JVM MockK implementation-
io.mockk:mockk-common (mockk/common)
common MockK implementation-
io.mockk:mockk-dsl (dsl/common)
common MockK DSL interface
-
io.mockk:mockk-dsl (dsl/common)
-
io.mockk:mockk-dsl-jvm (dsl/jvm)
JVM support functions for DSL
-
io.mockk:mockk-common (mockk/common)
-
io.mockk:mockk-agent-android (agent/android)
call interception for Android (drop-in replacement for mockk-agent-jvm)-
io.mockk:mockk-agent-common (agent/common)
common call interception code(Android and JVM) -
io.mockk:mockk-agent-api (agent/common)
common API(Android and JVM) for call interception -
org.objenesis:objenesis (2.6)
library to instantiate objects -
com.linkedin.dexmaker:dexmaker (2.12.1)
library to modify dex-code
-
io.mockk:mockk-agent-common (agent/common)
-
io.mockk:mockk (mockk/jvm)
- Basics
- DSL, Gateway, Implementation & Agent layers
- Mock creation: basic flow
- Mock creation: inline instrumentation
- Mock creation: subclass instrumentation
- Mock creation: instantiation
- Mock creation: cancellation
- (MockK/SpyK creation)
- mockkObject, mockkStatic, mockkConstructor
- Mocking by annotation
- Tests(prinicples & layout)
- Code transformation
- ByteBuddy inlining
- ByteBuddy subclassing
- DEX Maker inlining
- DEX Maker subclassing
- Call recording
- Recording states
- Signatures
- Autohinting
- Chain detection
- Verification
- verify
- verifyAll
- verifyOrder
- verifySequence
- verify(timeout=X)