node package manager

regression-testing-fixture-loader

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