Run the following in a terminal at the root of the repository
dotnet tool restore
The branch name should start with: feature/VIH-XXXX-branchName (X - is digit). If git version is less than 2.9 the pre-commit file from the .githooks folder need copy to local .git/hooks folder. To change git hooks directory to directory under source control run (works only for git version 2.9 or greater) :
git config core.hooksPath .githooks
The commit message will be validated by prepare-commit-msg hook. The commit message format should start with : 'feature/VIH-XXXX : ' folowing by 8 or more characters description of commit, otherwise the warning message will be presented.
To run Zap scan locally update the following settings and run acceptance\integration tests
User Secrets:
- "VhServices:UserApiUrl": "https://userapi_ac/"
Update following configuration under appsettings.json under UserApi.AcceptanceTests or UserApi.IntegrationTests
- "VhServices:UserApiUrl": "https://userapi_ac/"
- "ZapConfiguration:ZapScan": true
Note: Ensure you have Docker desktop engine installed and setup
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.
Visit the VH-Setup repository for Instructions to run as a container locally..