I want to run specific go tests that send http requests to a server with details on how the tests ran.
Is there a way to programmatically call go test [flags] within a go program?
Super simplified example:
func main() {
results := runTests(identifier - packagename or testname)
//send post request with results
}
perhaps I need to look into this http://golang.org/pkg/testing/#RunTests
For now I decided to use exec to parse the output of the command to determine if the test passed or failed.
I am guessing one can look through the source code of some go testing framework like GoConvey and maybe programmatically call a test and post the results. I will try this sometime in the future when I have more time HA.