mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
790e1feb93
* streamline initialization of test databases, support on-disk sqlite test db * clean up test databases * introduce testsuite helper * use testsuite everywhere we use a test db * update documentation * improve error handling * disable entity integration test until we can figure out locking error
16 lines
189 B
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)
|
|
}
|