Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestCmd represents the test command TestCmd = &cobra.Command{ Use: "test", Short: "Run go tests for your project", RunE: func(cmd *cobra.Command, args []string) error { c, err := models.ReadDQLConfig() if err != nil { return err } err = helpers.CreateLambdaNetwork() if err != nil { return err } err = helpers.StartLocalDynamoDB() if err != nil { return err } os.Setenv("GRAPH_DYNAMO_MODE", "test") err = c.CreateResourceTables(force) if err != nil { return err } t := "go test -cover -p 1" if profile { err = helpers.RunCmd("/bin/sh", "-c", t+" -coverprofile=cover.out ./...") if err != nil { return err } return helpers.RunCmd("/bin/sh", "-c", "go tool cover -html=cover.out") } return helpers.RunCmd("/bin/sh", "-c", t+" ./...") }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.