testruntime

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestRuntime

type TestRuntime struct {
	commands.TestCommands
	Backend git.BackendCommands
}

TestRuntime provides Git functionality for test code (unit and end-to-end tests).

func Clone

func Clone(original *testshell.TestRunner, targetDir string) TestRuntime

Clone creates a clone of the repository managed by this test.Runner into the given directory. The cloned repo uses the same homeDir and binDir as its origin.

func Create

func Create(t *testing.T) TestRuntime

Create creates test.Runner instances.

func CreateGitTown

func CreateGitTown(t *testing.T) TestRuntime

CreateGitTown creates a test.Runtime for use in tests, with a main branch and initial git town configuration.

func Initialize

func Initialize(workingDir, homeDir, binDir string) TestRuntime

initialize creates a fully functioning test.Runner in the given working directory, including necessary Git configuration to make commits. Creates missing folders as needed.

func New

func New(workingDir, homeDir, binDir string) TestRuntime

newRuntime provides a new test.Runner instance working in the given directory. The directory must contain an existing Git repo.

Jump to

Keyboard shortcuts

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