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
CreateMyFilefunction is called a unit test, then what is the correct name for the test for selecting theMake filemenu and checking the result of this selection? Is this integration testing or not?Since I checked the
CreateMyFilefunction in unit tests, does it make sense to check its result after selecting theMake filemenu item? If not, how do I check the result for theMake filemenu? If yes, won't this lead to duplication of tests since theCreateMyFilefunction has already been tested in unit tests?
What is the correct way to implement tests in this scenario?