sage
sage copied to clipboard
sggo: TestCommand is not cacheable
sggo.TestCommand prevents test results from being cached by go tooling.
According to go docs the only flags that may be set for caching to apply is
-benchtime, -cpu, -list, -parallel, -run, -short, -timeout, -failfast, and -v
See docs
After some local testing it seems that -race does not impact caching either.
sggo.TestCommand currently sets the following flags as well (which prevents cache):
-
-race -
-shuffle on -
-coverprofile -
-covermode
It would be great if the default testing with go is cached, to improve feedback velocity when building locally. Perhaps two different targets:
-
sggo.TestCommand(cached) -
sggo.TestCoverCommand(not-cached)
This issue has been open for 365 days with no activity. Marking as stale.