Skips long test
By default they will be skipped, `make LONG=1` will run them
This commit is contained in:
8
Makefile
8
Makefile
@@ -3,7 +3,13 @@ all: build check
|
|||||||
build :
|
build :
|
||||||
go build
|
go build
|
||||||
|
|
||||||
|
ifdef LONG
|
||||||
|
short_option =
|
||||||
|
else
|
||||||
|
short_option = -short
|
||||||
|
endif
|
||||||
|
|
||||||
check :
|
check :
|
||||||
go vet
|
go vet
|
||||||
go test -coverprofile=cover.out -covermode=count
|
go test $(short_option) -coverprofile=cover.out -covermode=count
|
||||||
golint
|
golint
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "gopkg.in/check.v1"
|
. "gopkg.in/check.v1"
|
||||||
@@ -18,6 +19,9 @@ func (s *AlbumDescriptionGetterSuite) SetUpTest(c *C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *AlbumDescriptionGetterSuite) TestGet(c *C) {
|
func (s *AlbumDescriptionGetterSuite) TestGet(c *C) {
|
||||||
|
if testing.Short() {
|
||||||
|
c.Skip("This test is really slow")
|
||||||
|
}
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
for _, a := range albumsDataTest {
|
for _, a := range albumsDataTest {
|
||||||
aStripped := StripNonCsvField(a)
|
aStripped := StripNonCsvField(a)
|
||||||
|
|||||||
Reference in New Issue
Block a user