Skip to content

Commit

Permalink
fix: integration tests are disabled(for now) on github
Browse files Browse the repository at this point in the history
There are few "integration" test suites they require demo repositories
and install tools. For speedup the pipeline I dissabled these
testsuites. Right now they're executed only from dev's machine. Later we
should (and will) enable these test suites
  • Loading branch information
Zdenko Vrabel committed May 10, 2022
1 parent b905725 commit 351caa6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func Test_Sync(t *testing.T) {
repo := os.Getenv("TOOLBXREPO")
if repo == "" {
t.Skip("set TOOLBXREPO to run this testutil")
t.Skip("set TOOLBXREPO to demo repository if you want to run this testutil")
}

tempDir, err := os.MkdirTemp("", "toolbx-sync")
Expand Down
10 changes: 8 additions & 2 deletions toolbx_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
package toolbx

import (
"os"
"testing"
"toolbx/testutil"
)

func Test_Execute(t *testing.T) {
toolbxpath, err := testutil.CreateTestData("./testdata")
repo := os.Getenv("TOOLBXREPO")
if repo == "" {
t.Skip("set TOOLBXREPO to demo repository if you want to run this testutil")
}

toolbxpath, err := os.MkdirTemp("", "toolbx-exec")
if err != nil {
t.FailNow()
}

toolbx, err := Create(
WithToolbxPath(toolbxpath),
WithSyncRepo(os.Getenv("TOOLBXREPO"), "main"),
)

if err != nil {
Expand Down

0 comments on commit 351caa6

Please sign in to comment.