▲ | edvinbesic 4 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You asserted that bugs are hard if you write unit tests. The parent stated that some issues only occur under production load and a unit test will not catch it. Nowhere was it implied that unit tests are useless. Perhaps a less defensive posture might invite more discussion. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | latchkey 4 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> The parent stated that some issues only occur under production load and a unit test will not catch it. I can't think of a single production problem that can't be replicated with a unit test. If you're seeing a problem in production, you need to fix it. How do you fix it? You write a test that replicates the problem and then fix the code, which fixes the test. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|