mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-11 04:40:12 +08:00
48 lines
1.7 KiB
Markdown
48 lines
1.7 KiB
Markdown
# Release Note
|
|
|
|
## upcoming version
|
|
- add `without()` checker to verify mock method never invoked with specified parameters
|
|
- support fuzz matcher when verifying mock invocation
|
|
- add `@MockWith` annotation to support share mock method between test classes
|
|
- add method to print detail log of mocking process for debugging
|
|
|
|
## v0.2.2
|
|
- support mock method parameters check
|
|
- fix a compatibility issue with jvm 9+
|
|
|
|
## v0.2.1
|
|
- support mock static method
|
|
- support mock kotlin companion object method
|
|
- support mock invoke by interface / base class object
|
|
|
|
## v0.2.0
|
|
- use `TestableTool` class to expose test context and verify mock invoke
|
|
- add `testable-maven-plugin` module to simplify javaagent configuration
|
|
- remove dependence on EnableTestable annotation in `testable-agent`
|
|
- rename annotations to reflect the actual use
|
|
|
|
## v0.1.0
|
|
- move generated agent jar to class folder
|
|
- support mock method of any object
|
|
|
|
## v0.0.5
|
|
- use dynamically runtime modification to replace static `e.java` file
|
|
- get rid of unit test framework dependence
|
|
- add testable ref field in test class at runtime instead of compile time
|
|
|
|
## v0.0.4
|
|
- use runtime byte code rewrite to invoke testable setup method
|
|
- add `TestableUtil` class to fetch current test case and invocation source
|
|
|
|
## v0.0.3
|
|
- use global method invoke to access private members instead of modification in place
|
|
- use `e.java` replace `testable` class make code more readable
|
|
- introduce `agent` module, use runtime byte code modification to support new operation and member method mocking
|
|
|
|
## v0.0.2
|
|
- add support of member method mocking by compile time code modification
|
|
|
|
## v0.0.1
|
|
- PoC version
|
|
- use compile time code modification to support new operation mocking and private field & method access
|