venom: Index | Files

package dbfixtures

import ""


Package Files



const Name = "dbfixtures"

Name of the executor.

func New Uses

func New() venom.Executor

New returns a new executor that can load database fixtures.

type Executor Uses

type Executor struct {
    Files              []string `json:"files" yaml:"files"`
    Folder             string   `json:"folder" yaml:"folder"`
    Database           string   `json:"database" yaml:"database"`
    DSN                string   `json:"dsn" yaml:"dsn"`
    Schemas            []string `json:"schemas" yaml:"schemas"`
    Migrations         string   `json:"migrations" yaml:"migrations"`
    MigrationsTable    string   `json:"migrationsTable" yaml:"migrationsTable"`
    SkipResetSequences bool     `json:"skipResetSequences" yaml:"skipResetSequences"`

Executor is a venom executor that can load fixtures in many databases, using YAML schemas.

func (Executor) GetDefaultAssertions Uses

func (e Executor) GetDefaultAssertions() venom.StepAssertions

GetDefaultAssertions return the default assertions of the executor.

func (Executor) Run Uses

func (e Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, step venom.TestStep, workdir string) (venom.ExecutorResult, error)

Run implements the venom.Executor interface for Executor.

func (Executor) ZeroValueResult Uses

func (Executor) ZeroValueResult() venom.ExecutorResult

ZeroValueResult return an empty implemtation of this executor result

type Result Uses

type Result struct {
    Executor Executor `json:"executor,omitempty" yaml:"executor,omitempty"`

Result represents a step result.

Package dbfixtures imports 11 packages (graph) and is imported by 6 packages. Updated 2020-02-22. Refresh now. Tools for package owners.