Adds tests to ensure all examples have matching item in json file (#1079)

Also checks that all items in the json file have a matching example
One was missing from C++, that example was added (The one in eclipse was completely wrong)
This commit is contained in:
Thad House
2018-05-24 17:08:37 -07:00
committed by Peter Johnson
parent c4728d291e
commit 863cfde394
9 changed files with 296 additions and 41 deletions

View File

@@ -193,3 +193,14 @@ model {
}
}
apply from: 'publish.gradle'
ext {
templateDirectory = new File("$projectDir/src/main/cpp/templates/")
templateFile = new File("$projectDir/src/main/cpp/templates/templates.json")
exampleDirectory = new File("$projectDir/src/main/cpp/examples/")
exampleFile = new File("$projectDir/src/main/cpp/examples/examples.json")
commandDirectory = new File("$projectDir/src/main/cpp/commands/")
commandFile = new File("$projectDir/src/main/cpp/commands/commands.json")
}
apply from: "${rootDir}/shared/examplecheck.gradle"