5b5f433a26
* Disable running alerting integration tests when using spanner. * Disable tests for templategroup.
21 lines
266 B
Go
21 lines
266 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)
|
|
}
|
|
|
|
func RunButSkipOnSpanner(m *testing.M) {
|
|
db.SkipTestsOnSpanner()
|
|
Run(m)
|
|
}
|