Skip to content

Add more instructions for running tests #750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2018
Merged

Add more instructions for running tests #750

merged 2 commits into from
May 23, 2018

Conversation

leighmcculloch
Copy link
Contributor

What

Add more instructions for running tests.

Why

For those starting out and not familiar with how to get a PostgresSQL
up and running for tests an example would be helpful. This isn't
supposed to define the only way to run the tests, but just provide an
example for those who have less experience and need a helping hand.

What
===
Add more instructions for running tests.

Why
===
For those starting out and not familiar with how to get a PostgresSQL
up and running for tests some examples would be helpful.
TESTS.md Outdated
## Running Tests

`go test` is used for testing. A running PostgreSQL server is required, with
the ability to log in. The database to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you do something to fix this line wrapping? either fmt or one sentence per line. i don't care.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to fix it however is needed, but it's not clear how it should be formatted based off the existing code. Right now I formatted it as wrap at 80 chars and I retained the two character spacing between sentences. How should I fix it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`go test` is used for testing. A running PostgreSQL
server is required, with the ability to log in. The
database to connect to test with is "pqgotest," on
"localhost" but these can be overridden using [environment
variables](https://www.postgresql.org/docs/9.3/static/libpq-envars.html).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maddyblue maddyblue merged commit 90697d6 into lib:master May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants