We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Wrap file IO functions, something like:
trellis-cli/cmd/main.go
Line 7 in 9900ff9
trellis-cli/cmd/cmd_test.go
Lines 19 to 25 in 9900ff9
Currently, tests that perform file IO might fail because files might not exist. Leaving them only testable in integration test.
Wrapping file IO functions makes uniting tests (go test -short) possible (like mockExecCommand).
go test -short
mockExecCommand
The text was updated successfully, but these errors were encountered:
Makes sense 👍 I'd have to look around since I don't know much about Go testing
Sorry, something went wrong.
No branches or pull requests
Summary
Wrap file IO functions, something like:
trellis-cli/cmd/main.go
Line 7 in 9900ff9
trellis-cli/cmd/cmd_test.go
Lines 19 to 25 in 9900ff9
Motivation
Currently, tests that perform file IO might fail because files might not exist. Leaving them only testable in integration test.
Wrapping file IO functions makes uniting tests (
go test -short
) possible (likemockExecCommand
).The text was updated successfully, but these errors were encountered: