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

View File

@ -23,6 +23,9 @@ import (
// Test generateConnectionString.
func TestIntegrationGenerateConnectionString(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
cfg := setting.NewCfg()
cfg.DataPath = t.TempDir()
@ -170,6 +173,9 @@ func TestIntegrationGenerateConnectionString(t *testing.T) {
// use to verify that the generated data are visualized as expected, see
// devenv/README.md for setup instructions.
func TestIntegrationPostgres(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
// change to true to run the PostgreSQL tests
const runPostgresTests = false