Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Enable setting test arguments with '-args' #1603

Closed
wants to merge 3 commits into from

Conversation

dvelitchkov
Copy link

Test arguments are now correctly passed in. Users have to set their go.buildFlags, e.g.:

"go.buildFlags": [
        "-args",
        "-foo",
        "i_am_foo",
        "-bar",
        "i_am_bar"
    ]

@msftclas
Copy link

msftclas commented Apr 2, 2018

CLA assistant check
All CLA requirements met.

@dvelitchkov
Copy link
Author

This is for #1534

@ramya-rao-a
Copy link
Contributor

I tried the test code and flags you provided, but I get the below error
Am I missing something?

screen shot 2018-04-03 at 11 05 57 pm

@dvelitchkov
Copy link
Author

Sorry for the delay.
I think this PR should be closed - this was a bad idea. What I'm doing can be accomplished by setting VS code project debug settings, no need to mess with build flags.

@ramya-rao-a
Copy link
Contributor

Can you update your solution in #1534 and close it as well?

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.

3 participants