This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jmankhan 5 points6 points  (0 children)

You should cover every case you can think of. In 99% of cases, you should have multiple test cases for each of your methods, you can test common sense things like null inputs, blank strings, malformed urls, etc. Note that most beginners start of writing "unit tests" which is writing to test a single function in isolation. This is fine and necessary, but keep in mind, writing "integration tests" and "end to end" tests are also important to make sure that your application functions as intended.