Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
.npmignore
.travis.yml
README.markdown
before.sql
index.js
package.json
test.sql
test2.sql

README.markdown

pg-test

Test runner for PostgreSQL tests.

Install

npm install -g pg-test

Usage

Specify the database url as an environment variable named DB. If running on Travis-CI, DB will default to postgres://postgres:localhost/travis.

Linux: export DB=postgres://postgres@localhost/mydb
Windows (PowerShell): $env:DB="postgres://postgres@localhost/mydb"

Then run

pg-test [path]

Which will execute every .sql file in the specified (defaults to cwd) and stop on the first, if any, failure.

License

MIT

Something went wrong with that request. Please try again.