alibaba / alibaba/testable-mock
单元测试类所在包路径能否自定义?
Open
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
现在这个工具要求单元测试类包路径必须严格与项目所在包路径相同,否则就无法产生mock效果。但是我个人更喜欢在测试类所在包路径添加一个junit包,用以区分类所在的位置。目前翻阅文档并没有看到相关设置。同时,对mock的测试类命名要求也是十分严格,如果能够有类似PowerMockito.spy(mockService)功能的函数,我觉得会更为方便一些。不知道后续会不会有这种功能。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the documentation for test-class package and naming requirements, then locate the implementation that enforces those constraints. The issue combines configurable test packages with a PowerMockito.spy-like API, so the intended scope and completion criteria need clarification before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100