Skip to content

x/playground: multifile code should support tests too #32403

@rogpeppe

Description

@rogpeppe

The playground docs say:

If the program contains tests or examples and no main function, the service runs the tests.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions