Skip to content
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

docs: improve readme tests section #2380

Merged
merged 2 commits into from
Mar 8, 2021
Merged

Conversation

Benehiko
Copy link
Contributor

@Benehiko Benehiko commented Mar 4, 2021

Related issue

Proposed changes

Update the README.md file with the correct test commands as the previous ones were incomplete or out dated.

Checklist

  • I have read the contributing guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security. vulnerability, I
    confirm that I got green light (please contact
    security@ory.sh) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further comments

Copy link
Member

@zepatrik zepatrik left a comment

Choose a reason for hiding this comment

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

Nice, the section was quite outdated it seems 😅

README.md Outdated
Comment on lines 442 to 450
# quick tests
make quicktest

# regular tests
make test
test-resetdb

# end-to-end tests
make e2e
Copy link
Member

Choose a reason for hiding this comment

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

We usually use the fenced (backticks) codeblocks instead.

README.md Outdated
Comment on lines 460 to 461
Running quick tests will use the sqlite database
thus add `-tags sqlite` when building the binary.
Copy link
Member

Choose a reason for hiding this comment

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

Even the full tests run against sqlite and require the tag.

Suggested change
Running quick tests will use the sqlite database
thus add `-tags sqlite` when building the binary.
All tests run against an sqlite in-memory database,
thus it is required to use the `-tags sqlite` build tag.

README.md Outdated
```

or test just a specific module:

```shell script
cd client; go test -short .
cd client; go test -v -failfast -short -tags sqlite .
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
cd client; go test -v -failfast -short -tags sqlite .
go test -v -failfast -short -tags sqlite ./client

@aeneasr aeneasr merged commit 277afe9 into ory:master Mar 8, 2021
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.

None yet

3 participants