package tests /** * * 使用的测试框架为 http://labix.org/gocheck * **/ import ( "wechat-conf/bootstrap" "wechat-conf/utils" "testing" "github.com/astaxie/beego" . "github.com/smartystreets/goconvey/convey" ) func TestHelloWorld(t *testing.T) { Convey("Hello go tester !", t, func() { So(2, ShouldEqual, 2) }) } func init() { bootstrap.SystemInit() beego.TestBeegoInit(utils.GetAppRoot()) }