mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-13 13:50:48 +08:00
release v0.7.4
This commit is contained in:
parent
6379f16266
commit
692b4435aa
@ -31,7 +31,9 @@
|
||||
|-- tool ➜ 项目开发过程中的工具脚本
|
||||
|-- demo
|
||||
| |-- java-demo ➜ Java语言的示例代码
|
||||
| `-- kotlin-demo ➜ Kotlin语言的示例代码
|
||||
| |-- kotlin-demo ➜ Kotlin语言的示例代码
|
||||
| |-- android-demo ➜ Android项目的示例代码
|
||||
| `-- spock-demo ➜ Spock测试框架的示例代码
|
||||
`-- docs ➜ 项目使用文档
|
||||
```
|
||||
|
||||
|
10
README_EN.md
10
README_EN.md
@ -9,11 +9,7 @@ Usage Document: https://alibaba.github.io/testable-mock/#/en-us/
|
||||
|
||||
## Roadmap
|
||||
|
||||
`TestableMock` is still under heavy development, the following version plans may be adjusted during the iteration
|
||||
|
||||
- `v0.6` it's the current version, refer to the [issue](https://github.com/alibaba/testable-mock/issues) list for the work in progress
|
||||
- `v0.7` better anti-refactoring support of mocking, allow quick mock all method in specified class
|
||||
- `v1.0` all functions are stable, a brand-new start
|
||||
`TestableMock` is still under heavy development, if you get sucked somehow, just go ahead raise an [issue](https://github.com/alibaba/testable-mock/issues) for it.
|
||||
|
||||
## Directory Structure
|
||||
|
||||
@ -27,7 +23,9 @@ Usage Document: https://alibaba.github.io/testable-mock/#/en-us/
|
||||
|-- tool ➜ Scripts for project maintain
|
||||
|-- demo
|
||||
| |-- java-demo ➜ Java code example
|
||||
| `-- kotlin-demo ➜ Kotlin code example
|
||||
| |-- kotlin-demo ➜ Kotlin code example
|
||||
| |-- android-demo ➜ Android app code example
|
||||
| `-- spock-demo ➜ Spock framwork code example
|
||||
`-- docs ➜ Source code of usage document
|
||||
```
|
||||
|
||||
|
@ -49,7 +49,7 @@ dependencies {
|
||||
testImplementation 'androidx.test:runner:1.4.0-alpha05'
|
||||
testImplementation 'junit:junit:4.+'
|
||||
testImplementation 'org.robolectric:robolectric:4.5.1'
|
||||
testImplementation 'com.alibaba.testable:testable-all:0.7.3'
|
||||
testImplementation 'com.alibaba.testable:testable-all:0.7.4'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||||
}
|
@ -13,8 +13,8 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.3')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.3')
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.4')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.4')
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
|
@ -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.7.3</testable.version>
|
||||
<testable.version>0.7.4</testable.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -17,8 +17,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.7.3")
|
||||
testAnnotationProcessor("com.alibaba.testable:testable-processor:0.7.3")
|
||||
testImplementation("com.alibaba.testable:testable-all:0.7.4")
|
||||
testAnnotationProcessor("com.alibaba.testable:testable-processor:0.7.4")
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
|
@ -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.7.3</testable.version>
|
||||
<testable.version>0.7.4</testable.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -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.7.3')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.3')
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.4')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.4')
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
|
@ -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.7.3</testable.version>
|
||||
<testable.version>0.7.4</testable.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
@ -1,5 +1,8 @@
|
||||
# Release Note
|
||||
|
||||
## 0.7.4
|
||||
- fix an `OmniConstructor.newInstance()` fail issue caused by `java.net.URL` class cannot be instrumented
|
||||
|
||||
## 0.7.3
|
||||
- fix an issue cause mock failed with referring to method defined in interface
|
||||
|
||||
|
@ -16,7 +16,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver
|
||||
|
||||
```xml
|
||||
<properties>
|
||||
<testable.version>0.7.3</testable.version>
|
||||
<testable.version>0.7.4</testable.version>
|
||||
</properties>
|
||||
```
|
||||
|
||||
@ -63,8 +63,8 @@ Add dependence of `TestableMock` in `build.gradle` file:
|
||||
|
||||
```groovy
|
||||
dependencies {
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.3')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.3')
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.4')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.4')
|
||||
}
|
||||
```
|
||||
|
||||
|
2
docs/en-us/doc/use-intellij-plugin.md
Normal file
2
docs/en-us/doc/use-intellij-plugin.md
Normal file
@ -0,0 +1,2 @@
|
||||
Use IntelliJ Plugin
|
||||
---
|
@ -11,6 +11,7 @@
|
||||
- [Reusing Mock Methods](en-us/doc/mock-method-reusing.md)
|
||||
- [Use MockWith Annotation](en-us/doc/use-mock-with.md)
|
||||
- [Use Package Mapping](en-us/doc/use-package-mapping.md)
|
||||
- [Use IntelliJ Plugin](en-us/doc/use-intellij-plugin.md)
|
||||
- [Frequently Asked Questions](en-us/doc/frequently-asked-questions.md)
|
||||
- [Mock Invocation In Thread Pool](zh-cn/doc/with-thread-pool.md)
|
||||
- [Use TestableMock In IDE](en-us/doc/use-in-ide.md)
|
||||
|
@ -1,5 +1,8 @@
|
||||
# Release Note
|
||||
|
||||
## 0.7.4
|
||||
- 修复`java.net.URL`类无法被instrument导致使用`OmniConstructor`构造报错的问题(issue-261)
|
||||
|
||||
## 0.7.3
|
||||
- 修复接口方法引用导致Mock报错的问题(issue-254)
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
```xml
|
||||
<properties>
|
||||
<testable.version>0.7.3</testable.version>
|
||||
<testable.version>0.7.4</testable.version>
|
||||
</properties>
|
||||
```
|
||||
|
||||
@ -63,8 +63,8 @@
|
||||
|
||||
```groovy
|
||||
dependencies {
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.3')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.3')
|
||||
testImplementation('com.alibaba.testable:testable-all:0.7.4')
|
||||
testAnnotationProcessor('com.alibaba.testable:testable-processor:0.7.4')
|
||||
}
|
||||
```
|
||||
|
||||
@ -110,4 +110,6 @@ test {
|
||||
> sourceCompatibility = '6' // 或7/8/9/...
|
||||
> ```
|
||||
>
|
||||
> **注意**:由于`Spock`采用基于字符串解析的特殊执行方式,`TestableTool`工具类在`Spock`框架中无法使用。
|
||||
>
|
||||
> 完整代码可参考`demo/spock-demo`示例项目。
|
||||
|
2
docs/zh-cn/doc/use-intellij-plugin.md
Normal file
2
docs/zh-cn/doc/use-intellij-plugin.md
Normal file
@ -0,0 +1,2 @@
|
||||
使用IntelliJ插件
|
||||
---
|
@ -11,6 +11,7 @@
|
||||
- [复用Mock类与方法](zh-cn/doc/mock-method-reusing.md)
|
||||
- [使用MockWith注解](zh-cn/doc/use-mock-with.md)
|
||||
- [使用包路径映射](zh-cn/doc/use-package-mapping.md)
|
||||
- [使用IntelliJ插件](zh-cn/doc/use-intellij-plugin.md)
|
||||
- [常见使用问题](zh-cn/doc/frequently-asked-questions.md)
|
||||
- [Mock线程池内的调用](zh-cn/doc/with-thread-pool.md)
|
||||
- [在IDE运行单元测试](zh-cn/doc/use-in-ide.md)
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.alibaba.testable</groupId>
|
||||
<artifactId>testable-parent</artifactId>
|
||||
<version>0.7.3</version>
|
||||
<version>0.7.4</version>
|
||||
<relativePath>../testable-parent</relativePath>
|
||||
</parent>
|
||||
<artifactId>testable-agent</artifactId>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.alibaba.testable</groupId>
|
||||
<artifactId>testable-parent</artifactId>
|
||||
<version>0.7.3</version>
|
||||
<version>0.7.4</version>
|
||||
<relativePath>../testable-parent</relativePath>
|
||||
</parent>
|
||||
<artifactId>testable-all</artifactId>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.alibaba.testable</groupId>
|
||||
<artifactId>testable-parent</artifactId>
|
||||
<version>0.7.3</version>
|
||||
<version>0.7.4</version>
|
||||
<relativePath>../testable-parent</relativePath>
|
||||
</parent>
|
||||
<artifactId>testable-core</artifactId>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.alibaba.testable</groupId>
|
||||
<artifactId>testable-parent</artifactId>
|
||||
<version>0.7.3</version>
|
||||
<version>0.7.4</version>
|
||||
<relativePath>../testable-parent</relativePath>
|
||||
</parent>
|
||||
<artifactId>testable-maven-plugin</artifactId>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.alibaba.testable</groupId>
|
||||
<artifactId>testable-parent</artifactId>
|
||||
<version>0.7.3</version>
|
||||
<version>0.7.4</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.7.3</testable.version>
|
||||
<testable.version>0.7.4</testable.version>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.alibaba.testable</groupId>
|
||||
<artifactId>testable-parent</artifactId>
|
||||
<version>0.7.3</version>
|
||||
<version>0.7.4</version>
|
||||
<relativePath>../testable-parent</relativePath>
|
||||
</parent>
|
||||
<artifactId>testable-processor</artifactId>
|
||||
|
Loading…
Reference in New Issue
Block a user