github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/featuretests/package_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package featuretests
     5  
     6  import (
     7  	"flag"
     8  	"testing"
     9  
    10  	gc "gopkg.in/check.v1"
    11  
    12  	coretesting "github.com/juju/juju/testing"
    13  )
    14  
    15  var runFeatureTests = flag.Bool("featuretests", true, "Run long-running feature tests.")
    16  
    17  func init() {
    18  
    19  	flag.Parse()
    20  
    21  	if *runFeatureTests == false {
    22  		return
    23  	}
    24  
    25  	// Initialize all suites here.
    26  	gc.Suite(&leadershipSuite{})
    27  	gc.Suite(&uniterLeadershipSuite{})
    28  }
    29  
    30  func Test(t *testing.T) {
    31  	coretesting.MgoTestPackage(t)
    32  }