Socket
Socket
Sign inDemoInstall

regression-testing-fixture-loader

Package Overview
Dependencies
48
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    regression-testing-fixture-loader

Fixture loader for Zengine regression tests


Version published
Weekly downloads
5
Maintainers
1
Install size
83.6 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 02 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc