{"library":"pg-test","type":"library","category":null,"description":"pg-test is a focused command-line interface (CLI) utility designed for running tests directly from `.sql` files against a PostgreSQL database. As of version 1.0.7, it provides a straightforward mechanism for database-centric testing, executing each `.sql` file in a specified directory sequentially and stopping on the first failure. Its release cadence appears to be stable and utility-focused, without frequent major updates. Key differentiators include its simplicity, direct execution of SQL scripts, and reliance on a `DB` environment variable for database connection, making it suitable for CI environments like Travis-CI. Unlike typical JavaScript test runners, pg-test primarily operates on raw SQL files rather than integrating with JS/TS test frameworks.","language":"javascript","status":"active","version":"1.0.7","tags":["javascript"],"install":[{"cmd":"npm install pg-test","imports":["import { spawn } from 'child_process'; spawn('pg-test', ['path/to/tests'], { stdio: 'inherit' });","// No direct programmatic API documented for import.","// Configuration is via environment variables or CLI arguments."]},{"cmd":"yarn add pg-test","imports":[]},{"cmd":"pnpm add pg-test","imports":[]}],"homepage":null,"github":"https://github.com/abrkn/pg-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pg-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pg-test/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}