Wednesday, March 5, 2014

Week 4: Testing and choosing test cases

I remember some basic things about testing from CSC108, but I never thought that it would be so troublesome here. The reason why I am telling about this  is because when we started to deeply cover Object Oriented Programming it just got so confusing. Especially, I felt that during the lab. We had to write collection of classes and use inheritance, then test each class for correctness. The main trouble started when we had to think about the cases for each class because me and my partner did not know how to even write them. So we furiously started thinking about on what we're going to test and what tests are the best to test. It really gets you frustrated indeed. However, our TA showed some good ways to test the codes and pointed to the mistakes we were doing.
But there is also a good side of it when your code passes all the tests and prints "OK" at the end. You feel just happy. To be honest, I never liked testing and more choosing test cases. But now, I somehow managed to test the code more properly and avoid useless test cases after all, which really helps me not to think about my fails at the beginning.

No comments:

Post a Comment