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?
The text was updated successfully, but these errors were encountered: