Tuesday 23 August 2016

testing - Unit tests vs Functional tests



What is the difference between unit tests and functional tests? Can a unit test also test a function?


Answer



Unit Test - testing an individual unit, such as a method (function) in a class, with all dependencies mocked up.




Functional Test - AKA Integration Test, testing a slice of functionality in a system. This will test many methods and may interact with dependencies like Databases or Web Services.


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...