Posts

Showing posts from March, 2008

Testing your application

Recently I finished a research about how to test an application. This was needed to have clear guidelines on how you should test your application and what kind of tools could be used for accomplishing that. The result of this research is spread out into the following paragraphs. What is testing? The definition of testing To keep it simple testing is making sure your application does what you expect it should do. This can be determined in different ways: - Unit isolation testing - Unit integration testing - Integration testing - Acceptance / functional testing Unit isolation testing Particularly useful when testing the logic of your application, like calculations etc. There shouldn’t be a lot of these kinds of tests in your code base. In other words, Mock tests. Goal The goal of this kind of test should be making sure the logic you have written doesn’t break and produces the right outcome. Unit integration testing Used for testing your logic in its context. So only use mocks