1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00

improve the bee

This commit is contained in:
astaxie
2014-04-03 16:41:44 +08:00
parent 7da30d1b35
commit 3141202051
3 changed files with 14 additions and 10 deletions

7
new.go
View File

@ -182,6 +182,13 @@ import (
. "github.com/smartystreets/goconvey/convey"
)
func init() {
_, file, _, _ := runtime.Caller(1)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, "../")))
beego.TestBeegoInit(apppath)
}
// TestMain is a sample to run an endpoint test
func TestMain(t *testing.T) {
r, _ := http.NewRequest("GET", "/", nil)