summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js')
-rw-r--r--platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js b/platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js
new file mode 100644
index 0000000000..f66aa2e332
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js
@@ -0,0 +1,17 @@
+import java from './generators/java';
+
+export function generators(type) {
+ let fs = require('fs');
+
+ console.log('Generating tests for '+ type + ':');
+ var api = {
+ 'operations' : JSON.parse(fs.readFileSync('config/supported-operations.json', 'utf8')),
+ 'properties' : JSON.parse(fs.readFileSync('config/supported-properties.json', 'utf8')),
+ 'java-ignores' : JSON.parse(fs.readFileSync('config/ignores.json', 'utf8')),
+ 'node-ignores' : JSON.parse(fs.readFileSync('../../node/test/ignores.json', 'utf8'))
+ };
+ if (type === 'android') {
+ java(api, type);
+ }
+ console.log('');
+}