regression-testing-fixture-loader

1.1.0 • Public • Published

Regression testing fixture loader

Custom package for loading and retrieve fixture data for regressions tests

Install

npm install regression-testing-fixture-loader --save

Usage


var config = {
  s3: {
    accessKeyId: 'XXXXX',
    secretAccessKey: 'XXXXX',
    bucket: 'regression-testing-fixtures'
  },
  datasets: [
    {
      name: 'editor',
      file: 'AngelaEditor.csv'
    },
    {
      name: 'ownerReusable',
      file: 'BarbaraOwnerReusable.csv',
      reusable: true
    }
  ]
};

var fixtureLoader = require('regression-testing-fixture-loader');
var fixtures = new fixtureLoader(config.fixture);

// Load in redis
fixtures.load();

// Get an editor set
var fixture = fixtures.get('editor');

Redis

You can pass an object with Redis options in the config object for more info about the options checkou the redis project https://github.com/NodeRedis/node_redis#options-object-properties

install

npm i regression-testing-fixture-loader

Downloadsweekly downloads

0

version

1.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability