github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/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  	// Initialize all suites here.
    25  	gc.Suite(&cmdJujuSuite{})
    26  	gc.Suite(&annotationsSuite{})
    27  	gc.Suite(&apiEnvironmentSuite{})
    28  	gc.Suite(&blockSuite{})
    29  	gc.Suite(&apiCharmsSuite{})
    30  	gc.Suite(&cmdEnvironmentSuite{})
    31  	gc.Suite(&cmdStorageSuite{})
    32  	gc.Suite(&cmdSystemSuite{})
    33  	gc.Suite(&dblogSuite{})
    34  	gc.Suite(&cloudImageMetadataSuite{})
    35  	gc.Suite(&cmdSpaceSuite{})
    36  	gc.Suite(&cmdSubnetSuite{})
    37  }
    38  
    39  func Test(t *testing.T) {
    40  	coretesting.MgoTestPackage(t)
    41  }