summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKRenderTest/scripts/generators.js
blob: f66aa2e3321ef807604330048770d472cdb1d711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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('');
}