aboutsummaryrefslogtreecommitdiffstats
path: root/submodule_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-03-21 16:44:38 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2018-03-21 16:44:38 +0100
commit4127002950de52da1a5bed93653e54e3cc9ee617 (patch)
tree9d365bd292b2866ab653de47eb0cc460a9528687 /submodule_test.go
parenta39fae69325f5a1faf8fe1b512124f3b77e8612d (diff)
downloadgo-git-4127002950de52da1a5bed93653e54e3cc9ee617.tar.gz
*: skip time consuming tests
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'submodule_test.go')
-rw-r--r--submodule_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/submodule_test.go b/submodule_test.go
index bea5a0f..7c97179 100644
--- a/submodule_test.go
+++ b/submodule_test.go
@@ -5,6 +5,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
+ "testing"
"gopkg.in/src-d/go-git.v4/plumbing"
@@ -66,6 +67,10 @@ func (s *SubmoduleSuite) TestInit(c *C) {
}
func (s *SubmoduleSuite) TestUpdate(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
sm, err := s.Worktree.Submodule("basic")
c.Assert(err, IsNil)
@@ -118,6 +123,10 @@ func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) {
}
func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
sm, err := s.Worktree.Submodule("itself")
c.Assert(err, IsNil)
@@ -134,6 +143,10 @@ func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) {
}
func (s *SubmoduleSuite) TestUpdateWithInitAndUpdate(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
sm, err := s.Worktree.Submodule("basic")
c.Assert(err, IsNil)
@@ -193,6 +206,10 @@ func (s *SubmoduleSuite) TestSubmodulesStatus(c *C) {
}
func (s *SubmoduleSuite) TestSubmodulesUpdateContext(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
sm, err := s.Worktree.Submodules()
c.Assert(err, IsNil)