Thursday, October 25, 2018

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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...