Skip to content

Commit

Permalink
Add instruction for running the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jul 28, 2021
1 parent 62c6331 commit c6ddb33
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Expand Up @@ -66,3 +66,29 @@ yarn add pg-boss
## Documentation
* [Usage](docs/usage.md)
* [Configuration](docs/configuration.md)

## Contributing

To setup a development environment for this library:

```bash
git clone https://github.com/timgit/pg-boss.git
npm install

```

To run the test suite you will need to pgboss access to an empty postgres database. You can set one up using the following commands on a local postgres instance:

```sql
CREATE DATABASE pgboss;
CREATE user postgres WITH PASSWORD 'postgres';
GRANT ALL PRIVILEGES ON DATABASE pgboss to postgres;
```

If you use a different database name, username or password, or want to run the test suite against a database that is running on a remote machine then you will need to edit the `test/config.json` file with the appropriate connection values.

You can then run the linter and test suite using:

```bash
npm run test
```

0 comments on commit c6ddb33

Please sign in to comment.