Skip to content

Instantly share code, notes, and snippets.

@vmihailenco
Created September 13, 2012 08:36
Show Gist options
  • Save vmihailenco/3712908 to your computer and use it in GitHub Desktop.
Save vmihailenco/3712908 to your computer and use it in GitHub Desktop.
package gaetesting
import (
"net/http"
"time"
"myapp/context"
"myapp/testlib"
"launchpad.net/gocheck"
)
func TestsHandler(w http.ResponseWriter, r *http.Request) {
context := context.New(r)
testlib.SetContext(context)
conf := &gocheck.RunConf{
Output: w,
Stream: false,
Filter: "",
Verbose: false,
Benchmark: false,
BenchmarkTime: time.Second,
}
result := gocheck.RunAll(conf)
w.Write([]byte(result.String()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment