test

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package test provides common utilities to be used in tests throughout the project

Index

Constants

View Source
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

type TestType added in v0.2.0

type TestType string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL