Chore: Exclude integration tests from running on test-backend step (#50359)

* Chore: Exclude integration tests from running on test-backend step

* Remove -v from go test command

* Add check to skip integration tests before each integration test

* Try to restart pipeline

* Retrying to make pipeline run
This commit is contained in:
Kat Yang
2022-06-10 11:46:21 -04:00
committed by GitHub
parent 336c9fd513
commit bd35e6917a
54 changed files with 240 additions and 15 deletions
+6
View File
@@ -17,6 +17,9 @@ import (
)
func TestIntegrationDataAccess(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
defaultAddDatasourceCommand := models.AddDataSourceCommand{
OrgId: 10,
Name: "nisse",
@@ -429,6 +432,9 @@ func TestIntegrationDataAccess(t *testing.T) {
}
func TestIntegrationGetDefaultDataSource(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
InitTestDB(t)
t.Run("should return error if there is no default datasource", func(t *testing.T) {