0

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.

  1. 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?

  2. 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?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.