tdd - How deep are your unit tests? -
the thing i've found tdd takes time tests set , being naturally lazy want write little code possible. first thing seem test constructor has set properties overkill?
my question level of granularity write unit tests at?
..and there case of testing much?
i paid code works, not tests, philosophy test little possible reach given level of confidence (i suspect level of confidence high compared industry standards, hubris). if don't typically make kind of mistake (like setting wrong variables in constructor), don't test it. tend make sense of test errors, i'm careful when have logic complicated conditionals. when coding on team, modify strategy test code we, collectively, tend wrong.
different people have different testing strategies based on philosophy, seems reasonable me given immature state of understanding of how tests can best fit inner loop of coding. ten or twenty years we'll have more universal theory of tests write, tests not write, , how tell difference. in meantime, experimentation seems in order.
Comments
Post a Comment