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

How to generate named tests? #177

Closed
jurisbu opened this issue Nov 4, 2022 · 7 comments
Closed

How to generate named tests? #177

jurisbu opened this issue Nov 4, 2022 · 7 comments

Comments

@jurisbu
Copy link

jurisbu commented Nov 4, 2022

Hi,

How to generate named tests using map instead of slice? Doing a bit of archeology there seems to be support for this as part of #148. But how one can enable it from commandline? I cannot find any examples, or help or reference information. Passing -named does not work.

Would be great to add some help with examples?

gotests v1.6.0

cc @butuzov

@jurisbu
Copy link
Author

jurisbu commented Nov 4, 2022

OK, seems that the code that implements -named functionality has not been released, meaning it is still in develop branch.
@cweill Can we expect v1.7.0 release at some point? 🙏 Otherwise go install ...gotests@latest pulls in v1.6.0.

@butuzov
Copy link
Contributor

butuzov commented Nov 4, 2022 via email

@jurisbu
Copy link
Author

jurisbu commented Nov 4, 2022

@butuzov Yes that is one way, just have to remember when updating all Go tools from VS Code Go extension that I need to manually update gotests, since VS Code Go extension will update tools to @latest. A little inconvenience. Oh, well.

@jurisbu jurisbu closed this as completed Nov 4, 2022
@butuzov
Copy link
Contributor

butuzov commented Nov 4, 2022

If you specify path to go tests located elsewhere, viscose updating to @latest wouldn't affect your setup. It's possible with vscode extension.

@stevenh
Copy link

stevenh commented Oct 22, 2023

This is still causing an issue, any info when a version with -named will be released?

@butuzov
Copy link
Contributor

butuzov commented Oct 22, 2023

@cweill good question. Charles, can we have it?

@ysomad
Copy link

ysomad commented Nov 22, 2023

Would be great, any updates on this?

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

No branches or pull requests

4 participants