▲ | CuriouslyC 7 days ago | |||||||||||||||||||||||||||||||||||||||||||
If you don't write unit tests, how do you know something works? Just manual QA? How long does that take you relative to unit tests? How do you know if something broke due to an indirect change? Just more manual QA? Do you really think this is saving you time? | ||||||||||||||||||||||||||||||||||||||||||||
▲ | tsimionescu 6 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
You can write many other other kinds of automated tests. Unit tests are rarely worth it, since they only look at the code in isolation, and often miss the forest for the trees if they're the only kind of test you have. But then, if you have other higher level tests that test your components are working well together, they're already implicitly covering that each component individually works well too - so your unit tests for that component are just duplicating the work the integration tests are already doing. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
▲ | troupo 6 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
> If you don't write unit tests, how do you know something works? Integration tests. Unlike unit tests they actually test if something works. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
▲ | 6 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
[deleted] |