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 Config *config.Config }
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 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.