I have a bunch of tests I would like to run in parallel; I think this is a
common situation for database backed tests where you might need to
establish a connection or a transaction, run a bunch of queries, and then
truncate the database. Right now I have something like this:
func testA(t *test
> - Is there a way to avoid the extra level of Run() nesting? It's a little
> annoying when specifying a command to `go test -run`.
That's an interesting question.
Here's one possible solution: use reference counting to clean up the
resource after us. Since we
can rely on the fact that all paral