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

Readme

Keywords

Package Sidebar

Install

npm i regression-testing-fixture-loader

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • evert0n