Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.38 KB

VH Test Api

Test Api Swagger

The Test Api was an api I developed to manage test users and test data, as well as providing a mechanism for the front end tests to retreive data from the backend apis.

Run Stryker

To run stryker mutation test, go to UnitTest folder under command prompt and run the following command

dotnet stryker

From the results look for line(s) of code highlighted with Survived\No Coverage and fix them.

If in case you have not installed stryker previously, please use one of the following commands

Global

dotnet tool install -g dotnet-stryker

Local

dotnet tool install dotnet-stryker

To update latest version of stryker please use the following command

dotnet tool update --global dotnet-stryker

Run Zap scan locally

To run Zap scan locally update the following settings and run acceptance\integration tests

Update following configuration under appsettings.json under TestApi.IntegrationTests

  • "Services:TestApiUrl": "https://TestApi_AC/"
  • "ZapConfiguration:ZapScan": true
  • "ConnectionStrings:TestApi": "Server=localhost,1433;Database=TestApi;User=sa;Password=VeryStrongPassword!;" (TestApi\appsettings.development.json)

Note: Ensure you have Docker desktop engine installed and setup