News for hackers. Stuff that matters.

3wetwetw

Re:Unit testing is for lazy people on Monday February 27, 2012 @07:20AM (#3638695)
And we're proud of it! It's lazy to do things right first and lazy not to want to fight with our code, seeking out bugs. BTW, Unit Testing is getting even lazier with Typemock Isolator V7 (http://www.typemock.com/isolator-v7). It's finding the bugs for you, so you don't have to waste 2 hours hunting around.
Re:Ask HN: How do you test your app? on Wednesday February 08, 2012 @02:07AM (#3565543)
Typemock is discussing that in today's webinar (10:00 AM ET and 15:00 in the UK) about tools and practices to help with unit testing - http://bitly.com/z3uPOi

The best thing is to make sure you're using tools that are flexible and scalable. Also, decide what to test. You don't test basic logic like 1+1=2.

Unit tests are intended to catch a specific type of bugs but not all errors. It's not usability testing. If you're not doing TDD (ideally) at least you can test legacy code and strive for high code coverage

Re:The evil unit test. on Monday January 30, 2012 @11:14AM (#3529298)
C++ definitely also needs unit testing - even with untestable code (even when it's bad code, though not always, it may be easier to test it using something like Isolator++, rather than rewrite greenfield from scratch).
Re:The evil unit test. on Monday January 30, 2012 @11:12AM (#3529292)
Absolutely - even those of us (like me - disclaimer: I work at Typemock) know that there is a time and a place for unit tests and TDD (not the same thing).

In fact, we wrote about this before http://bitly.com/zdyJfl

We're hosting a webinar on Wednesday about different kinds of testing and when a unit test is appropriate and when another kind of test, like an integration test, may be a better choice - http://bitly.com/xeYSYg.

Unit tests have a time and place. There are times in which they are a must if you want to reduce technical debt and test your code - both if you're writing mission critical stuff or even when you're writing the latest social sharing app (remember the Fail Whale? We all hate that!). But, no, you don't need TDD on greenfield code all the time and you shouldn't have to write tests for logic.

What's ahead for 2012?

Happy New Year!What's ahead for 2012? What will we see with the rise in software -- even your non-techy relatives are reliant on software. What does that mean for developers and startups?

( Read More... | no comments | on HN )