1.0.2 • Published 5 years ago

auto-techs v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Automated testing for JSON API's with Schemas

Here is the below example to the test the schemas

// import the modules var generate_schemas = require('auto-techs/generate-schemas'); var validate_schemas = require('auto-techs/schema-validation'); var path= require('path');

const CSV_FILE = path.join(dirname, 'generate-schemas.csv'); const SCHEMA_PATH = path.join(dirname, '/schemas/');

// generate the schemas generate_schemas(CSV_FILE, SCHEMA_PATH);

// validate schema validate_schemas(CSV_FILE, SCHEMA_PATH);

Olaa !!