0.1.5 • Published 10 years ago

libretto v0.1.5

Weekly downloads
3
License
BSD
Repository
github
Last release
10 years ago

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

  });

})
0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago