Last post Jan 07, 2021 06:46 PM by DA924
Jan 07, 2021 04:50 PM|mark1961|LINK
I have acquired a asp.net core microservice where i am trying to run existing project of automation tests (built with SpecFlow).
I have no prior knowledge of SpecFlow, but anyway i am not able to run these tests, whether i run them in Visual Studio or a command line i get error.
My first question is, do i need to have the service running before starting these tests? As opposed to unit tests that run within VS....
If so, i cannot seem to get the service to run... it is set up to run in a docker container, which is running an image, but the service url will not load in a browser... (specflow file has a url i presume it uses to test api endpoints)
Im not familar with Specflow the website help talks about runners but i do not think that's the setup this project has, can anyone explain how these tests normally need to be run ?
Jan 07, 2021 06:46 PM|DA924|LINK
If you are running an integration test and service code is involved, which means you're testing the code in an actual real test of the code and not a unit test, then the service should be running. You don't unit test services. Unit tests you don't run the
code for real like an integration test does.