bump to v0.6.3

This commit is contained in:
金戟 2021-04-18 10:26:06 +08:00
parent 9c09bf9653
commit 9d6e4dd1fa
16 changed files with 49 additions and 35 deletions

View File

@ -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) {

View File

@ -12,7 +12,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<junit.version>5.6.2</junit.version>
<testable.version>0.6.2</testable.version>
<testable.version>0.6.3</testable.version>
</properties>
<dependencies>

View File

@ -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<KotlinCompile> {

View File

@ -14,7 +14,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<junit.version>5.6.2</junit.version>
<testable.version>0.6.2</testable.version>
<testable.version>0.6.3</testable.version>
</properties>
<dependencies>

View File

@ -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) {

View File

@ -12,7 +12,7 @@
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<testable.version>0.6.2</testable.version>
<testable.version>0.6.3</testable.version>
</properties>
<dependencyManagement>

View File

@ -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

View File

@ -16,7 +16,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver
```xml
<properties>
<testable.version>0.6.2</testable.version>
<testable.version>0.6.3</testable.version>
</properties>
```
@ -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')
}
```

View File

@ -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和访问被测类私有成员

View File

@ -16,7 +16,7 @@
```xml
<properties>
<testable.version>0.6.2</testable.version>
<testable.version>0.6.3</testable.version>
</properties>
```
@ -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')
}
```

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<relativePath>../testable-parent</relativePath>
</parent>
<artifactId>testable-agent</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<relativePath>../testable-parent</relativePath>
</parent>
<artifactId>testable-all</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<relativePath>../testable-parent</relativePath>
</parent>
<artifactId>testable-core</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<relativePath>../testable-parent</relativePath>
</parent>
<artifactId>testable-maven-plugin</artifactId>

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<packaging>pom</packaging>
<name>testable-parent</name>
<description>Unit test enhancement toolkit</description>
@ -42,7 +42,7 @@
<plugin.gpg.version>1.6</plugin.gpg.version>
<plugin.staging.version>1.6.8</plugin.staging.version>
<plugin.maven.version>3.6.0</plugin.maven.version>
<testable.version>0.6.2</testable.version>
<testable.version>0.6.3</testable.version>
</properties>
<profiles>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<relativePath>../testable-parent</relativePath>
</parent>
<artifactId>testable-processor</artifactId>