tests

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(project *project.CliProject) error

Start runs all tests

Types

type TestBundle

type TestBundle struct {
	Name  string      `yaml:"name"`
	Tests []*TestCase `yaml:"tests"`
}

func (*TestBundle) Run

func (b *TestBundle) Run(srv *server.Server, constructor common.Constructor) error

Run runs all tests in a bundle

type TestCase

type TestCase struct {
	Name           string `yaml:"name"`
	Query          string `yaml:"query"`
	ExpectedResult string `yaml:"expectedResult"`
	Priority       int    `yaml:"priority"`
}

func (*TestCase) Run

func (b *TestCase) Run(testClient *http.Client, gqlEndpoint string) error

Run runs a single test case

Jump to

Keyboard shortcuts

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