123456789101112131415161718192021222324252627
  1. package tests
  2. /**
  3. *
  4. * 使用的测试框架为 http://labix.org/gocheck
  5. *
  6. **/
  7. import (
  8. "wechat-conf/bootstrap"
  9. "wechat-conf/utils"
  10. "testing"
  11. "github.com/astaxie/beego"
  12. . "github.com/smartystreets/goconvey/convey"
  13. )
  14. func TestHelloWorld(t *testing.T) {
  15. Convey("Hello go tester !", t, func() {
  16. So(2, ShouldEqual, 2)
  17. })
  18. }
  19. func init() {
  20. bootstrap.SystemInit()
  21. beego.TestBeegoInit(utils.GetAppRoot())
  22. }