Appearance
User Validation Setup
Use this guide to add new validation cases to the EMRALD testing suite.
How to Add a New Validation Case
- Use git to create a new branch for adding this validation case:
git checkout -b validationCase/{caseName} - Create a new test method in
VandV_Testing\ValidationTests.csby copying and pasting the template method:Template_ValidationCase_Test(). - Place the test model inside
VandV_Testing\TestingFiles\Models\ValidationModels\and ensure the test model's file name matches exactly the name of the new test method with a.jsonextension (e.g.,Template_ValidationCase_Test.json). - Place the file with the expected results inside
VandV_Testing\TestingFiles\Models\ValidationModels\and ensure the file name matches exactly the name of the new test method with the following appended to the end of it, as appropriate:_res.txtfor normal results (e.g.,Template_ValidationCase_Test_res.txt)_paths.txtfor path out results (e.g.,Template_ValidationCase_Test_paths.txt)_jsonResults.jsonfor JSON results (e.g.,Template_ValidationCase_Test_jsonResults.json)
- Edit the test method and options as necessary.
- Confirm the test works by right-clicking the method name and selecting Run Tests in Visual Studio.
- Once the test method is confirmed as passing, add a new page for the test case in this documentation. Instructions for doing this can be found on the template page.
- Commit your changes in git and push them up to GitHub.
- Create a Pull Request in GitHub to merge your branch into the main branch.
- The EMRALD Team will review the changes and decide whether to complete the pull request.
