Today I have tried SimpleTest out which is an unit testing tool (see here) It's quite easy to use, but I think the report that this particular testing generates is not much beautiful. It says that I could extend the report class; however, it's a little bit more difficult to do that.
Once I can use this testing, I found some problems... I don't know what I have to test in my project! (it's a kind of trivial search engine) It's obvious that the function we have to test is just a search function, isn't it? You know, it's very hard to think about what to test when you do have nothing to test.
Anyway, I should think about it more - -" Let's start by dividing my testing into 3 parts:
Once I can use this testing, I found some problems... I don't know what I have to test in my project! (it's a kind of trivial search engine) It's obvious that the function we have to test is just a search function, isn't it? You know, it's very hard to think about what to test when you do have nothing to test.
Anyway, I should think about it more - -" Let's start by dividing my testing into 3 parts:
- Before search
- While searching
- After searched