test_runner

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestRunner

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

testRunner is used to run multiple tests

func NewQuietTestRunner

func NewQuietTestRunner(steps []TestRunnerStep, submissionDir string) TestRunner

func NewTestRunner

func NewTestRunner(steps []TestRunnerStep, submissionDir string) TestRunner

func (TestRunner) Run

func (r TestRunner) Run(isDebug bool, executable *executable.Executable) bool

Run runs all tests in a stageRunner

type TestRunnerStep

type TestRunnerStep struct {
	// TestCase is the test case that'll be run against the user's code.
	TestCase tester_definition.TestCase

	// TesterLogPrefix is the prefix that'll be used for all logs emitted by the tester. Example: "stage-1"
	TesterLogPrefix string

	// Title is the title of the test case. Example: "Stage #1: Bind to a port"
	Title string
}

Jump to

Keyboard shortcuts

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