5 ms·
I don't think it's a community thing. I would absolutely use tests if I was writing any interesting, algorithmic code. Compilers, data structures, pathfinding,
by gurkendoktor 12y ago
I don't think it's a community thing. I would absolutely use tests if I was writing any interesting, algorithmic code. Compilers, data structures, pathfinding, whatever.
But most iOS apps are one half glue code that interacts with a JSON backend, and one half GUI code. Neither half is fun to test. And from my experience with coders who insist on tests, they never catch the interesting bugs anyway - session expiry in the wrong screen, animations that break if you interact with them too fast, using APIs that are not available on $(previous iOS), etc.
- johnfig 12y agoUnit Tests are becoming more popular in iOS as the Rails community strengthens and influences other developers, but I agree there are some aspects in which integration tests using something like KIF can be far more valuable in making sure that the code is working as intended.
- cgh 12y agoUnit testing is not exclusive to Rails nor are its origins with the Rails community. JUnit (Java) was written in the '90s by Kent Beck of Smalltalk fame and still figures prominently in the Java community today.