regtest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Regression testing package. The folder names are just auto incrementing. Each time pgschema breaks in normal use, write a regression test to capture the behavior. Steps to add a new test are as follows.

1. Fire up a new ephemeral schema using the `pgschema/temp` package. 2. Create and run a setup SQL script. 3. Define the schema in HCL and plan changes. 4. Compare actual changes to expected changes. Ignore changes outside schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegressionTest

type RegressionTest struct {
	Conn       *temp.Conn
	SetupFile  string
	SourceFile string
}

func (*RegressionTest) Run

func (r *RegressionTest) Run() ([]order.Change, error)

Jump to

Keyboard shortcuts

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