Skip to content

Commit

Permalink
Skip vcs repo tests in short mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Mar 20, 2017
1 parent 20365b9 commit 4481599
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions vcs_repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import (
// https://github.com/Masterminds/vcs test files

func TestSvnRepo(t *testing.T) {
if testing.Short() {
t.Skip("Skipping slow test in short mode")
}

tempDir, err := ioutil.TempDir("", "go-vcs-svn-tests")
if err != nil {
t.Error(err)
Expand Down Expand Up @@ -99,6 +103,10 @@ func TestSvnRepo(t *testing.T) {
}

func TestHgRepo(t *testing.T) {
if testing.Short() {
t.Skip("Skipping slow test in short mode")
}

tempDir, err := ioutil.TempDir("", "go-vcs-hg-tests")
if err != nil {
t.Error(err)
Expand Down Expand Up @@ -160,6 +168,10 @@ func TestHgRepo(t *testing.T) {
}

func TestGitRepo(t *testing.T) {
if testing.Short() {
t.Skip("Skipping slow test in short mode")
}

tempDir, err := ioutil.TempDir("", "go-vcs-git-tests")
if err != nil {
t.Error(err)
Expand Down Expand Up @@ -230,6 +242,10 @@ func TestGitRepo(t *testing.T) {
}

func TestBzrRepo(t *testing.T) {
if testing.Short() {
t.Skip("Skipping slow test in short mode")
}

tempDir, err := ioutil.TempDir("", "go-vcs-bzr-tests")
if err != nil {
t.Error(err)
Expand Down

0 comments on commit 4481599

Please sign in to comment.