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

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 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

1 participant