I have a pretty simple question: What kind of project should I create for Integration Tests
in Visual Studio? The only proposed project type under Test
tab in Visual C#
is Unit Test Project
, but it's not integration test, so I'm not sure
This is what I read, but couldn't find an answer :
Integration Testing In Visual Studio With Different Project Types
How do you separate unit tests from integration tests in Visual Studio?
Thanks!
Integration testing is performed using the black box method. This method implies that a testing team interacts with an app and its units via the user interface – by clicking on buttons and links, scrolling, swiping, etc. They don't need to know how code works or consider the backend part of the components.
The most common way to execute integration tests is using the command line interface (CLI). Ensure you have prepared the integration test environment before starting. Integration tests must be executed from the dev/tests/integration working directory.
Use the unit test project template. You will create your integration tests in there.
The unit test project is just a template that provisions the necessary dependencies. You could just as easily create an empty project and manually add what it needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With