Documentation ¶
Overview ¶
Package test provides common utilities to be used in tests throughout the project
Index ¶
Constants ¶
const ( Unit TestType = "u" Integration TestType = "i" E2e TestType = "e2e" Slow TestAttribute = "slow" PostgresCreateOpName = "sp_create_db_rowset_eav" MysqlCreateOpName = "sp_create_db_rowset_eav" SqlserverCreateOpName = "sp_create_rowset_EAV" )
Variables ¶
This section is empty.
Functions ¶
func FormatTestDesc ¶ added in v0.2.0
func FormatTestDesc(label TestType, description string, extras ...TestAttribute) string
FormatTestDesc should be used throughout the project to format test descriptions for the Ginkgo testing library. This is needed because it provides a higher-level abstraction for the format of test descriptions in order to allow --skip or --focus test flags to work uniformly. Example output: [e2e] RenderOperation [extra1] [extra2] TODO: The primitivity of Ginkgo's test runner is a long-standing issue of its 1.x version, see https://github.com/onsi/ginkgo/issues/664 and https://github.com/onsi/ginkgo/issues/144. This function will likely become obsolete from the 2.x version of Ginkgo.
Types ¶
type TestAttribute ¶ added in v0.2.0
type TestAttribute string