Eh, just a lucky match from accumulated experience :D. Nice to know there is a proven experiment to confirm that.
For beginners, testing is hard, mainly that their produced code is not SOLID enough. So they struggle to get enough coverage or test working at all because the unit is too big. With time and or guided help, they see the benefit of making units smaller and writing tests.
When starting implementation from a test, the assertion itself can be too big. Whit makes the unit non-SOLID.
An example: assertFlyToMoon().
Or starting from code as smaller units:
Eh, just a lucky match from accumulated experience :D. Nice to know there is a proven experiment to confirm that.
For beginners, testing is hard, mainly that their produced code is not SOLID enough. So they struggle to get enough coverage or test working at all because the unit is too big. With time and or guided help, they see the benefit of making units smaller and writing tests.
When starting implementation from a test, the assertion itself can be too big. Whit makes the unit non-SOLID.
An example:
assertFlyToMoon()
.Or starting from code as smaller units:
Kudos for the example!