testsuite

package
v0.0.0-...-8221b33 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JavaSeleniumTestSuite

type JavaSeleniumTestSuite struct {
	// The name of the Docker image for the test suite.
	Image string
}

TestSuite defines a Java test suite.

func (*JavaSeleniumTestSuite) Build

func (j *JavaSeleniumTestSuite) Build(path string) error

Build produces the artifacts needed to run the Java test suite. It will create a Docker image on the host. If there is any error it is returned.

func (*JavaSeleniumTestSuite) ListTests

func (j *JavaSeleniumTestSuite) ListTests() (tests []string, err error)

ListTests returns the list of all tests declared into a Java test suite in the order in which they are run. If there is any error, it is returned.

func (*JavaSeleniumTestSuite) Run

func (j *JavaSeleniumTestSuite) Run(config *RunConfig) (results []bool, err error)

Run invokes the Java test suite with a given configuration and returns its results. The test results are represented as booleans. If the test is passed, the value is true; otherwise it is false. If there is any error, it is returned.

type JunitTestSuite

type JunitTestSuite struct {
	Image string
}

func (*JunitTestSuite) Build

func (j *JunitTestSuite) Build(path string) error

func (*JunitTestSuite) ListTests

func (j *JunitTestSuite) ListTests() (tests []string, err error)

func (*JunitTestSuite) Run

func (j *JunitTestSuite) Run(config *RunConfig) (results []bool, err error)

type RunConfig

type RunConfig struct {
	Name        string
	Env         []string
	Tests       []string
	StartConfig *docker.RunOptions
}

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

func NewTestSuite

func NewTestSuite(path string) (*TestSuite, error)

func (*TestSuite) Build

func (t *TestSuite) Build() error

func (*TestSuite) ListTests

func (t *TestSuite) ListTests() ([]string, error)

func (*TestSuite) Run

func (t *TestSuite) Run(config *RunConfig) ([]bool, error)

Jump to

Keyboard shortcuts

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