Reputation: 359
Let's assume we have a desktop application that implements the CreateMyFile
function and this function is tested via unit tests. On the other hand, we have a Make file
menu item that, when selected, calls the CreateMyFile
function.
I have two testing-related questions for this scenario.
If the test for the CreateMyFile
function is called a unit test, then what is the correct name for the test for selecting the Make file
menu and checking the result of this selection? Is this integration testing or not?
Since I checked the CreateMyFile
function in unit tests, does it make sense to check its result after selecting the Make file
menu item? If not, how do I check the result for the Make file
menu? If yes, won't this lead to duplication of tests since the CreateMyFile
function has already been tested in unit tests?
What is the correct way to implement tests in this scenario?
Upvotes: 0
Views: 30