title: Programmatically Call go tests
body: <p>I want to run specific go tests that send http requests to a server with details on how the tests ran.</p>
  
  <p>Is there a way to programmatically call go test [flags] within a go program?</p>
  
  <p><strong>Super simplified example:</strong></p>
  
  <pre><code>func main() {
      results := runTests(identifier - packagename or testname)
      //send post request with results
  }
  </code></pre>
  
  <p>perhaps I need to look into this <a href="http://golang.org/pkg/testing/#RunTests" rel="nofollow">http://golang.org/pkg/testing/#RunTests</a></p>