alibaba / alibaba/testable-mock
Gradle项目java-demo示例mock无效(只有private有效)
Open
need verify
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
Gradle项目运行java-demo示例,mock没有按照设置的期望运行,而是按照实际调用运行的。参考自助问题排查:发现在项目路径的build目录下找不到testable-agent.log(Gradle项目)文件,但是DemoPrivateAccessorTest以及DemoPrivateProcessorTest可以运行成功。
IDE:AndroidStudio4.1.3
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the java-demo Gradle project and compare its setup with DemoPrivateAccessorTest and DemoPrivateProcessorTest, which reportedly pass. Investigate why the expected mock behavior is not applied and why build/testable-agent.log is absent under build. Done means the demo honors configured expectations and produces the expected diagnostic log.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100