I have written integration tests for API using Restsharp and xUnit and i added this test project into existing web API project. I am not able to run those xUnit integration tests in localhost because it needs application is in run and how can i run both projects (integration tests project and web application project) at a time??
To run API in terminal:
Open cmd.exe
, navigate to you API project folder (where .csproj file is).
Run command dotnet run
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.