一个好的,稳健的系统, 是函数经过数次稳健的UT测试, API和Service之间是经过BDD测试的
Java测试框架介绍
java有很多测试类框架, 开发中有很多比如Mokito, powermock..., wiremock, cucumber ,但是powermock测试,sonar不认其覆盖率....(MockSettingsImpl.java:228)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:61)
at org.mockito.Mockito.mock...CucumberException("Stopped at \"user invokes root cleanAllMessages:\"", e);
}
}
Cucumber
cucum是BDD测试框架的一个工具..., 能够测试组件与组件之间的API调用, service里API的测试
https://cloud.tencent.com/developer/article/1628939
WireMock
Mock