pg-test

1.0.7 • Public • Published

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

/pg-test/

    Package Sidebar

    Install

    npm i pg-test

    Weekly Downloads

    46

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    2.17 kB

    Total Files

    8

    Last publish

    Collaborators

    • abrkn