migrations_test.go 428 B

12345678910111213141516171819202122
  1. package migrations
  2. // import (
  3. // "testing"
  4. //
  5. // "github.com/go-xorm/xorm"
  6. //
  7. // . "github.com/smartystreets/goconvey/convey"
  8. // )
  9. //
  10. // func TestMigrationsSqlite(t *testing.T) {
  11. //
  12. // Convey("Initial SQLite3 migration", t, func() {
  13. // x, err := xorm.NewEngine("sqlite3", ":memory:")
  14. // StartMigration(x)
  15. //
  16. // tables, err := x.DBMetas()
  17. // So(err, ShouldBeNil)
  18. //
  19. // So(len(tables), ShouldEqual, 1)
  20. // })
  21. // }