From 9d6e4dd1fa5cbf8dc447bab64fca6a7fa00136c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Sun, 18 Apr 2021 10:26:06 +0800 Subject: [PATCH] bump to v0.6.3 --- demo/java-demo/build.gradle | 4 ++-- demo/java-demo/pom.xml | 2 +- demo/kotlin-demo/build.gradle.kts | 4 ++-- demo/kotlin-demo/pom.xml | 2 +- demo/spock-demo/build.gradle | 4 ++-- demo/spock-demo/pom.xml | 2 +- docs/en-us/doc/release-note.md | 7 +++++++ docs/en-us/doc/setup.md | 6 +++--- docs/zh-cn/doc/release-note.md | 33 +++++++++++++++++++------------ docs/zh-cn/doc/setup.md | 6 +++--- testable-agent/pom.xml | 2 +- testable-all/pom.xml | 2 +- testable-core/pom.xml | 2 +- testable-maven-plugin/pom.xml | 2 +- testable-parent/pom.xml | 4 ++-- testable-processor/pom.xml | 2 +- 16 files changed, 49 insertions(+), 35 deletions(-) diff --git a/demo/java-demo/build.gradle b/demo/java-demo/build.gradle index 808d714..cb7bfca 100644 --- a/demo/java-demo/build.gradle +++ b/demo/java-demo/build.gradle @@ -13,8 +13,8 @@ repositories { dependencies { testImplementation('org.junit.jupiter:junit-jupiter:5.6.2') - testImplementation('com.alibaba.testable:testable-all:0.6.2') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.2') + testImplementation('com.alibaba.testable:testable-all:0.6.3') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.3') } tasks.withType(JavaCompile) { diff --git a/demo/java-demo/pom.xml b/demo/java-demo/pom.xml index 7f7634e..91c03f5 100644 --- a/demo/java-demo/pom.xml +++ b/demo/java-demo/pom.xml @@ -12,7 +12,7 @@ 1.8 1.8 5.6.2 - 0.6.2 + 0.6.3 diff --git a/demo/kotlin-demo/build.gradle.kts b/demo/kotlin-demo/build.gradle.kts index b4c32c3..72abbba 100644 --- a/demo/kotlin-demo/build.gradle.kts +++ b/demo/kotlin-demo/build.gradle.kts @@ -16,8 +16,8 @@ dependencies { implementation("org.jetbrains.kotlin:kotlin-reflect") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") testImplementation("org.junit.jupiter:junit-jupiter:5.6.2") - testImplementation("com.alibaba.testable:testable-all:0.6.2") - testAnnotationProcessor("com.alibaba.testable:testable-processor:0.6.2") + testImplementation("com.alibaba.testable:testable-all:0.6.3") + testAnnotationProcessor("com.alibaba.testable:testable-processor:0.6.3") } tasks.withType { diff --git a/demo/kotlin-demo/pom.xml b/demo/kotlin-demo/pom.xml index 6095fa2..9f0570a 100644 --- a/demo/kotlin-demo/pom.xml +++ b/demo/kotlin-demo/pom.xml @@ -14,7 +14,7 @@ 1.8 1.8 5.6.2 - 0.6.2 + 0.6.3 diff --git a/demo/spock-demo/build.gradle b/demo/spock-demo/build.gradle index 2f47ecc..8f7d06c 100644 --- a/demo/spock-demo/build.gradle +++ b/demo/spock-demo/build.gradle @@ -14,8 +14,8 @@ repositories { dependencies { testImplementation 'org.codehaus.groovy:groovy-all:3.0.7' testImplementation 'org.spockframework:spock-core:2.0-M5-groovy-3.0' - testImplementation('com.alibaba.testable:testable-all:0.6.2') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.2') + testImplementation('com.alibaba.testable:testable-all:0.6.3') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.3') } tasks.withType(JavaCompile) { diff --git a/demo/spock-demo/pom.xml b/demo/spock-demo/pom.xml index 4f72ed5..2486064 100644 --- a/demo/spock-demo/pom.xml +++ b/demo/spock-demo/pom.xml @@ -12,7 +12,7 @@ 1.8 1.8 1.8 - 0.6.2 + 0.6.3 diff --git a/docs/en-us/doc/release-note.md b/docs/en-us/doc/release-note.md index e98840e..c9c4981 100644 --- a/docs/en-us/doc/release-note.md +++ b/docs/en-us/doc/release-note.md @@ -1,5 +1,12 @@ # Release Note +## 0.6.3 +- support custom inner `Mock` class name +- support skip specified packages from `OmniConstructor` enhancement +- fix 2 circle construction cases in `OmniConstructor` +- fix an index out-of-range issue caused by non-static method without `this` reference +- fix a null pointer exception caused by resource folder unavailable at runtime + ## 0.6.2 - support setup global testable agent configure via properties file - disable OmniConstructor bytecode enhancement by default diff --git a/docs/en-us/doc/setup.md b/docs/en-us/doc/setup.md index 68baca3..3a1492a 100644 --- a/docs/en-us/doc/setup.md +++ b/docs/en-us/doc/setup.md @@ -16,7 +16,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver ```xml - 0.6.2 + 0.6.3 ``` @@ -63,8 +63,8 @@ Add dependence of `TestableMock` in `build.gradle` file: ```groovy dependencies { - testImplementation('com.alibaba.testable:testable-all:0.6.2') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.2') + testImplementation('com.alibaba.testable:testable-all:0.6.3') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.3') } ``` diff --git a/docs/zh-cn/doc/release-note.md b/docs/zh-cn/doc/release-note.md index e45c4ea..aa46bcb 100644 --- a/docs/zh-cn/doc/release-note.md +++ b/docs/zh-cn/doc/release-note.md @@ -1,5 +1,12 @@ # Release Note +## 0.6.3 +- 支持自定义内部Mock容器类名(issue-137) +- 支持自定义`OmniConstructor`字节码增强范围 +- 修复两处可导致`OmniConstructor`无限递归构建的问题(包括issue-138) +- 修复一处非静态方法获取`this`引用失败导致的下标越界异常(issue-136) +- 修复获取构建目录失败导致的空指针异常(issue-135) + ## 0.6.2 - 支持通过Properties文件配置TestableAgent - 默认禁用OmniConstructor相关的字节码增强 @@ -120,26 +127,26 @@ - 重名了现有的各种注解,以便与更好的与实际功能对应 ## v0.1.0 -- move generated agent jar to class folder -- support mock method of any object +- 将生成的Agent Jar包自动移到打包工程的Class目录 +- 支持Mock任意类型的方法调用(不再局限于被测类中的方法) ## 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 +- 使用运行期字节码修改替代预先生成的`e.java`文件 +- 消除所有对特定单元测试框架的定制逻辑 +- 将测试类中的Testable引用字段从编译期生成改为运行期生成 ## v0.0.4 -- use runtime byte code rewrite to invoke testable setup method -- add `TestableUtil` class to fetch current test case and invocation source +- 改用运行期字节码修改来调用Testable的`setup`方法 +- 添加`TestableUtil`工具类用于获取当前测试用例和调用来源 ## 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 +- 使用静态方法封装私有成员的访问过程,不在原调用处直接添加反射代码 +- 使用`e.java`文件替代`testable`类型,提高代码可读性 +- 引入`agent`模块,使用运行期字节码修改实现`new`操作和私有成员调用的Mock ## v0.0.2 -- add support of member method mocking by compile time code modification +- 基于编译期代码修改支持Mock私有成员方法的调用 ## v0.0.1 -- PoC version -- use compile time code modification to support new operation mocking and private field & method access +- 首个概念验证版本 +- 基于编译期代码修改支持`new`操作的Mock和访问被测类私有成员 diff --git a/docs/zh-cn/doc/setup.md b/docs/zh-cn/doc/setup.md index 1c86d2f..069c376 100644 --- a/docs/zh-cn/doc/setup.md +++ b/docs/zh-cn/doc/setup.md @@ -16,7 +16,7 @@ ```xml - 0.6.2 + 0.6.3 ``` @@ -63,8 +63,8 @@ ```groovy dependencies { - testImplementation('com.alibaba.testable:testable-all:0.6.2') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.2') + testImplementation('com.alibaba.testable:testable-all:0.6.3') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.3') } ``` diff --git a/testable-agent/pom.xml b/testable-agent/pom.xml index ceb2c73..cad8518 100755 --- a/testable-agent/pom.xml +++ b/testable-agent/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.2 + 0.6.3 ../testable-parent testable-agent diff --git a/testable-all/pom.xml b/testable-all/pom.xml index 834913a..05ae328 100644 --- a/testable-all/pom.xml +++ b/testable-all/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.2 + 0.6.3 ../testable-parent testable-all diff --git a/testable-core/pom.xml b/testable-core/pom.xml index cce4391..a9958d4 100644 --- a/testable-core/pom.xml +++ b/testable-core/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.2 + 0.6.3 ../testable-parent testable-core diff --git a/testable-maven-plugin/pom.xml b/testable-maven-plugin/pom.xml index 8334ac8..2b63497 100644 --- a/testable-maven-plugin/pom.xml +++ b/testable-maven-plugin/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.2 + 0.6.3 ../testable-parent testable-maven-plugin diff --git a/testable-parent/pom.xml b/testable-parent/pom.xml index 36bd7b0..629ea3e 100644 --- a/testable-parent/pom.xml +++ b/testable-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.alibaba.testable testable-parent - 0.6.2 + 0.6.3 pom testable-parent Unit test enhancement toolkit @@ -42,7 +42,7 @@ 1.6 1.6.8 3.6.0 - 0.6.2 + 0.6.3 diff --git a/testable-processor/pom.xml b/testable-processor/pom.xml index a8f6141..154ef11 100644 --- a/testable-processor/pom.xml +++ b/testable-processor/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.2 + 0.6.3 ../testable-parent testable-processor