Files
grafana/pkg/tests/testsuite/testsuite.go
T
Peter Štibraný 5b5f433a26 spanner: Disable running alerting integration tests when using spanner. (#102730)
* Disable running alerting integration tests when using spanner.

* Disable tests for templategroup.
2025-03-26 10:57:55 +01:00

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)
}