From 2128b2142d67185a888d83e9697d4d0101d0a668 Mon Sep 17 00:00:00 2001 From: Glenn Lewis Date: Mon, 21 Mar 2016 15:31:36 -0700 Subject: [PATCH] Block running integration tests by default Fixes #311. Change-Id: I334b9e22e748d96a62b0c7f59690c1a998a3c802 --- tests/README.md | 2 +- tests/integration/activity_test.go | 2 ++ tests/integration/issues_test.go | 2 ++ tests/integration/misc_test.go | 2 ++ tests/integration/pulls_test.go | 2 ++ tests/integration/repos_test.go | 4 +++- tests/integration/users_test.go | 2 ++ 7 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/README.md b/tests/README.md index b059dcd..3622de9 100644 --- a/tests/README.md +++ b/tests/README.md @@ -29,7 +29,7 @@ be run using a dedicated test account. Run tests using: - GITHUB_AUTH_TOKEN=XXX go test -v ./integration + GITHUB_AUTH_TOKEN=XXX go test -v -tags=integration ./integration fields diff --git a/tests/integration/activity_test.go b/tests/integration/activity_test.go index cdf28e1..1a1a711 100644 --- a/tests/integration/activity_test.go +++ b/tests/integration/activity_test.go @@ -3,6 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build integration + package tests import ( diff --git a/tests/integration/issues_test.go b/tests/integration/issues_test.go index 416c126..12c549d 100644 --- a/tests/integration/issues_test.go +++ b/tests/integration/issues_test.go @@ -3,6 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build integration + package tests import "testing" diff --git a/tests/integration/misc_test.go b/tests/integration/misc_test.go index beb1928..bf98df1 100644 --- a/tests/integration/misc_test.go +++ b/tests/integration/misc_test.go @@ -3,6 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build integration + package tests import ( diff --git a/tests/integration/pulls_test.go b/tests/integration/pulls_test.go index 50a3221..fcfd8e0 100644 --- a/tests/integration/pulls_test.go +++ b/tests/integration/pulls_test.go @@ -3,6 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build integration + package tests import "testing" diff --git a/tests/integration/repos_test.go b/tests/integration/repos_test.go index 172ca89..6d97ca0 100644 --- a/tests/integration/repos_test.go +++ b/tests/integration/repos_test.go @@ -3,14 +3,16 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build integration + package tests import ( "net/http" + "reflect" "testing" "github.com/google/go-github/github" - "reflect" ) func TestRepositories_CRUD(t *testing.T) { diff --git a/tests/integration/users_test.go b/tests/integration/users_test.go index f2f7ef1..1ec1843 100644 --- a/tests/integration/users_test.go +++ b/tests/integration/users_test.go @@ -3,6 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build integration + package tests import (