-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
There was a problem hiding this 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
# quick tests | ||
make quicktest | ||
|
||
# regular tests | ||
make test | ||
test-resetdb | ||
|
||
# end-to-end tests | ||
make e2e |
There was a problem hiding this comment.
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
Running quick tests will use the sqlite database | ||
thus add `-tags sqlite` when building the binary. |
There was a problem hiding this comment.
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.
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 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd client; go test -v -failfast -short -tags sqlite . | |
go test -v -failfast -short -tags sqlite ./client |
Related issue
Proposed changes
Update the README.md file with the correct test commands as the previous ones were incomplete or out dated.
Checklist
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.
works.
Further comments