Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love testing I just find using it in the right way can be very tricky sometimes. Especially in a team setting where there are weaker members than others.

When you work with a team of people that didn't understand what to test you end up with really bad tests that add very little value. Do you delete those test? Write sane ones?

When you end up with a legacy code base where doing something like functional UI testing is easy but doing unit testing on the actual code is almost impossible, do you even attempt to unit test it?

If you see a piece of code with that must be rewritten, but unit testing it costs too much time, do you simply start writing tests what you think the assumptions were and then just go about with the rewrite?

In the end I see a huge value in testing what you write, and being automated is preferred. My problem becomes picking up something else that was clearly done in a misguided fashion and reliably rewriting or refactoring it. I know there are probably some guides/books out there that demonstrate it so any suggestions are welcome.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: