-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/playground: multifile code should support tests too #32403
Comments
For an even smaller repro, compare: https://play.golang.org/p/t-tmCBPADwt compiles and runs. https://play.golang.org/p/PkTK3_aY7L8, which adds only a go.mod file, fails:
|
This support would be really useful for |
Ha, I just went to report this problem and found that I reported it over 2 years ago. 🤣 Surely it's not that hard to fix? |
Can I take this one? |
Change https://go.dev/cl/462835 mentions this issue: |
The playground docs say:
This example contains tests and no main function, but it doesn't work. Looks like that's because it also contains other files.
https://play.golang.org/p/eYjtKS7J25y
I'd expect the example to run
TestFoo
as a test.The text was updated successfully, but these errors were encountered: