jeudi 9 juillet 2015

Programmatically Call go tests

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://ift.tt/1Hfnpk8

Aucun commentaire:

Enregistrer un commentaire