Skip to content

docs: document how to run tests without a go.mod#251

Open
Solaris-star wants to merge 1 commit into
pkg:masterfrom
Solaris-star:docs/249-how-to-run-tests
Open

docs: document how to run tests without a go.mod#251
Solaris-star wants to merge 1 commit into
pkg:masterfrom
Solaris-star:docs/249-how-to-run-tests

Conversation

@Solaris-star

Copy link
Copy Markdown

Summary

#249 asks how to run the test suite: this repo predates modules and has no go.mod, so a plain go test fails outside GOPATH mode. Also, a few tests need -vet=off because they intentionally use non-constant format strings.

Fix

Document the temporary go mod init + go test -vet=off ./... workflow in the README.

Fixes #249

This package intentionally has no module file. Note the temporary
`go mod init` workflow and `-vet=off` requirement for local testing (pkg#249).

Fixes pkg#249
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.

Various problems when running tests

1 participant