alibaba / testable-mock

换种思路写Mock,让单元测试更简单
https://alibaba.github.io/testable-mock/
MIT License
1.83k stars 310 forks source link

MOCK父类中外调方法不生效 #296

Open ghost opened 2 years ago

ghost commented 2 years ago

A类为父类,B类为子类,在B类的测试类中MOCK父类的外调方法,结果不生效

yongyijian commented 2 years ago

同有此问,在看说明文档时,mock 的范围只在被测试类中

IvanLu1024 commented 1 year ago

这个该如何解决呢?

wulihuawuqia commented 1 year ago

同问

wulihuawuqia commented 1 year ago

看日志是父类的方法扫描不到