DEV Community

Discussion on: How the lack of internal state makes your classes easier to test and refactor

Collapse
 
marcinwosinek profile image
Marcin Wosinek

Yeah, it's always balancing between keeping tests manageable and keeping them meaningful. I probably err a bit on the side of writing too much tests & too far away from how the code is actually working. I try to cover more realistic cases with End-to-End.