Data provider for testarmada
file format
Provider should only support .js
. .js
support is to allow user generate some random data on the fly, like user registration scenario that requires fresh email account every time.
Each .js
data file should return a json object.
supported files
${DPRO}.js : main test data
${DPRO_INST}.js : (optional) extra data that only applies to certain instance
default file location
${REPO_ROOT}/config/data
${DPRO_LOCATION}
file loading rules
basic
DPRO=local ./node_modules/.bin/magellan --test xxxxx ......
DPRO=prod-a ./node_modules/.bin/magellan --test xxxxx ......
advantage
DPRO_LOCATION="./config/" DPRO=staging ./node_modules/.bin/magellan --test xxxxx ......
DPRO=staging DPRO_INST=2 ./node_modules/.bin/magellan --test xxxxx ......
usage
var td = require("dpro");
console.log(td.beijing, td.beijing.description);
console.log(td.timestamp());
License
Documentation in this project is licensed under Creative Commons Attribution 4.0 International License. Full details available at https://creativecommons.org/licenses/by/4.0