Do not run integration tests by default.

This commit is contained in:
Timo Reimann 2017-10-13 11:08:03 +02:00 committed by Traefiker
parent 4d1285d8e5
commit 914f3d1fa3
3 changed files with 13 additions and 2 deletions

View file

@ -3,6 +3,7 @@ package integration
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"net"
@ -18,11 +19,19 @@ import (
checker "github.com/vdemeester/shakers"
)
var integration = flag.Bool("integration", false, "run integration tests")
func Test(t *testing.T) {
check.TestingT(t)
}
func init() {
flag.Parse()
if !*integration {
log.Info("Integration tests disabled.")
return
}
check.Suite(&AccessLogSuite{})
check.Suite(&AcmeSuite{})
check.Suite(&ConstraintSuite{})