grafana/pkg/tests/testsuite/testsuite.go

16 lines
189 B
Go

package testsuite
import (
"os"
"testing"
"github.com/grafana/grafana/pkg/infra/db"
)
func Run(m *testing.M) {
db.SetupTestDB()
code := m.Run()
db.CleanupTestDB()
os.Exit(code)
}