-
Notifications
You must be signed in to change notification settings - Fork 1
Development
Hekku2 edited this page Apr 1, 2020
·
14 revisions
This document describes basics for repository-validator
development
- Create branch from
test
-branch with namefeature/my-feature-name-here
orfix/my-fix-name-here
- Make your changes to that branch
- Create pull request to
test
-branch - Wait for review
- Make fixes and/or merge the pull request if it was accepted. If you don't have permission for that, wait for a person who does.
This project requires dotnet core, see image used in Jenkinsfile for specific requirements.
dotnet build
- To run the unit tests:
dotnet test
- To run acceptances tests, create
.runsettings
-file with test parameters using following script
./Deployment/Create-RunSettingsFile -ResourceGroup 'resource-group-name'
-
You can then use the console interface to run the validation locally. See Console interface
-
Finally, Testing development environment can be created by creating your own version of
developer-settings.example.json
asdeveloper-settings.json
and configure the file correctly. Then run.\Deployment\Prepare-Envrionment.ps1
. For more details, see the script. Then you can use.\Testing\Test-Validation.ps1
to test the Azure Function. E.g.
./Deployment/Prepare-Environment.ps1
./Testing/Test-Validation.ps1 -ResourceGroup 'resource-group-name'