UNPKG

pooled-pg

Version:

A driver to PostgreSQL that is compatible with pg, with more effective pooling strategies.

39 lines (32 loc) 530 B
'use strict'; /** * Run package tests. * (C) 2013 Alex Fernández. */ // requires var testing = require('testing'); /** * Run all module tests. */ exports.test = function(callback) { var tests = {}; var libs = [ 'server', 'pooled', 'remote', 'connect', 'loadtest', 'protocol', ]; libs.forEach(function(lib) { tests[lib] = require('./lib/' + lib + '.js').test; }); testing.run(tests, callback); }; // run tests if invoked directly if (__filename == process.argv[1]) { exports.test(testing.show); }