Create data fixtures for testing projects
Create data fixtures for testing Node.js projects.
Currently only works with Postgres, more engines can be easily added for other SQL servers.
This project is very new and thus the API is subject to incompatible changes.
var Fixr = require'fixr';var assert = require'assert';var engineConfig =host: 'localhost'port: 5432database: 'mydb_test'user: 'postgres'password: '';var fixr = engineConfig;fixrfix'./fixtures/users'assertifErrorerr;console.log'fixture data loaded!';/** do some test that requires user data loaded by the fixture*/;
npm install fixr
- SQL statement generation provided by sql