As functionality is added to the app we should be adding release tests to ensure we haven't regressed.
Release Test
Create a github personal access token and name it token.json in this directory, like {"token":"gxgjjuwj-xxxx-xxxx"}
. The only required permission is public_repo Access public repositories
.
Run npm install
Run node create_release_project.js --version <release_vers>
to create a new project version.
EX: node create_release_project.js --version 3.3.0
This will generate a project in cht-release-testing repo. Once completed you should see the link to the project in the console.
EX: Project created at: https://github.com/medic/cht-release-testing/projects/27
To generate a project with specific test cases (eg for minor releases and patches), add a new label to the issues you need to test and modify labels in config.js to use the new label.