mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-04-01 15:10:43 +08:00
release v0.4.12
This commit is contained in:
parent
d860684e91
commit
d57dedb6fc
@ -13,8 +13,8 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
||||||
testImplementation('com.alibaba.testable:testable-all:0.4.11')
|
testImplementation('com.alibaba.testable:testable-all:0.4.12')
|
||||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.11')
|
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.12')
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<junit.version>5.6.2</junit.version>
|
<junit.version>5.6.2</junit.version>
|
||||||
<testable.version>0.4.11</testable.version>
|
<testable.version>0.4.12</testable.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -16,8 +16,8 @@ dependencies {
|
|||||||
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")
|
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")
|
||||||
testImplementation("com.alibaba.testable:testable-all:0.4.11")
|
testImplementation("com.alibaba.testable:testable-all:0.4.12")
|
||||||
testAnnotationProcessor("com.alibaba.testable:testable-processor:0.4.11")
|
testAnnotationProcessor("com.alibaba.testable:testable-processor:0.4.12")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<junit.version>5.6.2</junit.version>
|
<junit.version>5.6.2</junit.version>
|
||||||
<testable.version>0.4.11</testable.version>
|
<testable.version>0.4.12</testable.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Release Note
|
# Release Note
|
||||||
|
|
||||||
|
## 0.4.12
|
||||||
|
- support verbose diagnose log for better self-troubleshooting
|
||||||
|
- support disable private access target existence check
|
||||||
|
- support specify mock scanning packages
|
||||||
|
- fix an ArrayIndexOutOfBoundsException issue when transforming native method
|
||||||
|
|
||||||
## 0.4.11
|
## 0.4.11
|
||||||
- support accessing private members of class under test in different package path
|
- support accessing private members of class under test in different package path
|
||||||
- validate the number of private method parameters accessed by `PrivateAccessor`
|
- validate the number of private method parameters accessed by `PrivateAccessor`
|
||||||
|
@ -16,7 +16,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver
|
|||||||
|
|
||||||
```xml
|
```xml
|
||||||
<properties>
|
<properties>
|
||||||
<testable.version>0.4.11</testable.version>
|
<testable.version>0.4.12</testable.version>
|
||||||
</properties>
|
</properties>
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -63,8 +63,8 @@ Add dependence of `TestableMock` in `build.gradle` file:
|
|||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation('com.alibaba.testable:testable-all:0.4.11')
|
testImplementation('com.alibaba.testable:testable-all:0.4.12')
|
||||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.11')
|
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.12')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Release Note
|
# Release Note
|
||||||
|
|
||||||
|
## 0.4.12
|
||||||
|
- 支持`VERBOSE`级别的Mocking过程日志,增强错误自助排查能力
|
||||||
|
- 支持使用`verifyTargetOnCompile`参数禁用编译期私有目标校验功能
|
||||||
|
- 支持通过agent参数指定Mock目标的扫描包范围
|
||||||
|
- 修复一处`ArrayIndexOutOfBoundsException`异常 (issue-52)
|
||||||
|
|
||||||
## 0.4.11
|
## 0.4.11
|
||||||
- 支持测试类访问与自身包路径不同的被测类的私有成员
|
- 支持测试类访问与自身包路径不同的被测类的私有成员
|
||||||
- 增加`PrivateAccessor`访问的私有方法参数数目检查,提高抗代码重构能力
|
- 增加`PrivateAccessor`访问的私有方法参数数目检查,提高抗代码重构能力
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
```xml
|
```xml
|
||||||
<properties>
|
<properties>
|
||||||
<testable.version>0.4.11</testable.version>
|
<testable.version>0.4.12</testable.version>
|
||||||
</properties>
|
</properties>
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -63,8 +63,8 @@
|
|||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation('com.alibaba.testable:testable-all:0.4.11')
|
testImplementation('com.alibaba.testable:testable-all:0.4.12')
|
||||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.11')
|
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.12')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-parent</artifactId>
|
||||||
<version>0.4.11</version>
|
<version>0.4.12</version>
|
||||||
<relativePath>../testable-parent</relativePath>
|
<relativePath>../testable-parent</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>testable-agent</artifactId>
|
<artifactId>testable-agent</artifactId>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-parent</artifactId>
|
||||||
<version>0.4.11</version>
|
<version>0.4.12</version>
|
||||||
<relativePath>../testable-parent</relativePath>
|
<relativePath>../testable-parent</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>testable-all</artifactId>
|
<artifactId>testable-all</artifactId>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-parent</artifactId>
|
||||||
<version>0.4.11</version>
|
<version>0.4.12</version>
|
||||||
<relativePath>../testable-parent</relativePath>
|
<relativePath>../testable-parent</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>testable-core</artifactId>
|
<artifactId>testable-core</artifactId>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-parent</artifactId>
|
||||||
<version>0.4.11</version>
|
<version>0.4.12</version>
|
||||||
<relativePath>../testable-parent</relativePath>
|
<relativePath>../testable-parent</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>testable-maven-plugin</artifactId>
|
<artifactId>testable-maven-plugin</artifactId>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-parent</artifactId>
|
||||||
<version>0.4.11</version>
|
<version>0.4.12</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>testable-parent</name>
|
<name>testable-parent</name>
|
||||||
<description>Unit test enhancement toolkit</description>
|
<description>Unit test enhancement toolkit</description>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<plugin.gpg.version>1.6</plugin.gpg.version>
|
<plugin.gpg.version>1.6</plugin.gpg.version>
|
||||||
<plugin.staging.version>1.6.8</plugin.staging.version>
|
<plugin.staging.version>1.6.8</plugin.staging.version>
|
||||||
<plugin.maven.version>3.6.0</plugin.maven.version>
|
<plugin.maven.version>3.6.0</plugin.maven.version>
|
||||||
<testable.version>0.4.11</testable.version>
|
<testable.version>0.4.12</testable.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.testable</groupId>
|
<groupId>com.alibaba.testable</groupId>
|
||||||
<artifactId>testable-parent</artifactId>
|
<artifactId>testable-parent</artifactId>
|
||||||
<version>0.4.11</version>
|
<version>0.4.12</version>
|
||||||
<relativePath>../testable-parent</relativePath>
|
<relativePath>../testable-parent</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>testable-processor</artifactId>
|
<artifactId>testable-processor</artifactId>
|
||||||
|
Loading…
Reference in New Issue
Block a user