3 ms·
Wow, 2.3x for tests/src ratio. I remember some recommendation for Java to have around 0.9x ratio, otherwise too much tests maintenance. Depends on the project
by deepsun 3y ago
Wow, 2.3x for tests/src ratio. I remember some recommendation for Java to have around 0.9x ratio, otherwise too much tests maintenance.
Depends on the project of course, e.g. SQLite has an insane ratio.
- cies 3y agoCould also be that Java's typing already accounts for some part of what would need to be tests in Python code...
- deepsun 3y agoExactly, that's what I meant. E.g. if very_rare_condition: raise MyRareException Java wouldn't compile (no exception instantiation), but Python would work fine in production until the rare condition happened (but not captured above, as it's a class, not instance). Cases like that justify 100% tests coverage in Python, but not Java.