Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: testing: add Test function #32067
The testing package has long contained the Benchmark function, which allows code in a non-testing source file to run benchmarks.
It is sometimes useful to be able to run test code in a non-testing context too; for example to demonstrate a failing test in the Go playground.
Perhaps something like this?