Property-based Testing in Java: Stateful Testing
The last episode was about patterns to find good properties . One pattern I mentioned there is Stateful Testing . Some PBT proponents treat this one with some condescension since state is considered as something that should be avoided - at least in functional programming. I tend to look at it with more tolerance. Stateful Testing I agree with the general notion of trying to get away from state if you reasonably can, but sometimes the stateless implementation of an algorithm feels weired - especially when wo
评论
?
参与讨论