libretto

libretto ========

npm install libretto
3 downloads in the last day
42 downloads in the last week
94 downloads in the last month

Libretto loads fixture data into your mongodb database.

Exporting:

libretto export /path/to/fixtures/dir --database=app-testing

Importing:

libretto import /path/to/fixtures/dir --database=app-testing

Using in tests:

var exec = require("child_process").exec;

describe("test#", function() {

  //load the fixtures
  before(function(next) {
    exec("./node_modules/.bin/libretto import " + __dirname + "/fixtures/scenario1 --database=app-testing", next);
  });

  it("do some test", function(next) {

  });

})
npm loves you