Documentation
¶
Overview ¶
Package plan provides the model for the test plan.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCase ¶
type TestCase struct {
EstimatedDuration int `json:"estimated_duration,omitempty"`
Format TestCaseFormat `json:"format,omitempty"`
Identifier string `json:"identifier,omitempty"`
Name string `json:"name,omitempty"`
Path string `json:"path"`
Scope string `json:"scope,omitempty"`
}
TestCase represents a single test case.
type TestCaseFormat ¶
type TestCaseFormat string
const ( TestCaseFormatFile TestCaseFormat = "file" TestCaseFormatExample TestCaseFormat = "example" )
type TestPlan ¶
type TestPlan struct {
Experiment string `json:"experiment"`
Tasks map[string]*Task `json:"tasks"`
Fallback bool
MutedTests []TestCase `json:"muted_tests,omitempty"`
}
TestPlan represents the entire test plan.
func CreateFallbackPlan ¶
CreateFallbackPlan creates a fallback test plan for the given tests and parallelism. It distributes test cases evenly accross the tasks using deterministic algorithm.
Click to show internal directories.
Click to hide internal directories.