This repository contains mocha tests, that runs static checks against a solution template folder containing mainTemplate.json, createUiDefinition.json and other template artifacts like nested templates, etc.
- Install nodejs with npm
- git clone https://github.com/vivsriaus/solutiontemplatevalidation
- npm install
To run all tests
- npm --folder=/path/to/solutiontemplatefolder run all. For instance,
npm --folder=jira-data-center-jira-software run all
To run just the tests for createUiDefinition.json file
npm --folder=jira-data-center-jira-software run createUi
To run just the tests for template files (mainTemplate.json and any nested template json files included in the folder)
npm --folder=jira-data-center-jira-software run template
buildpackage.zip, Gruntfile.js, CreateBuildPackage.ps1 and SetBranchNameVariable.ps1 files are NOT required to run tests locally. These are files used by an internal VSTS repository to run the mocha tests as part of a CI pipeline, the scope of which is beyond the solution template validation repository.