Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Support for go test arguments #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jmdacruz
Copy link

@jmdacruz jmdacruz commented Sep 8, 2021

Adding basic support for passing arguments to the go-unit-tests hook. Proposed approach is to simply iterate over the script arguments, and keep those that start with at least one -. Initial inspiration for this was adding the ability to override the timeout argument. Current implementation will default to -timeout=30s as argument. If arguments are added, then the default timeout needs to be explicitly passed as an argument.

@jmdacruz
Copy link
Author

jmdacruz commented Sep 8, 2021

My bad... I just noticed #72 which may cover this issue with more strict parameter checking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant