14 lines
436 B
Go
14 lines
436 B
Go
package testinit1
|
|
|
|
func Init() {
|
|
//_, file, _, _ := runtime.Caller(0)
|
|
//apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".."+string(filepath.Separator)+".."+string(filepath.Separator))))
|
|
//beego.TestBeegoInit(apppath)
|
|
//
|
|
//globals.SugarLogger.Infof("testinit RunMode=%s", beego.BConfig.RunMode)
|
|
//beego.BConfig.RunMode = "dev" // InitBeegoBeforeTest会将runmode设置为test
|
|
//
|
|
//globals.Init()
|
|
//beegodb.Init()
|
|
}
|