No description, website, or topics provided.
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Latest commit bfab849 May 28, 2014 @crcn crcn no validate
Permalink
Failed to load latest commit information.
bin
lib
src
.gitignore
.npmignore
README.md
makefile
package.json

README.md

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) {

  });

})