Fixr
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.
Example
fixtures/users.json
users_test.js
var Fixr = ;var assert = ; var engineConfig = host: 'localhost' port: 5432 database: 'mydb_test' user: 'postgres' password: ''; var fixr = engineConfig;fixr;
Install
npm install fixr
Mentions
- SQL statement generation provided by sql