Documentation
¶
Index ¶
- type Metadata
- type Workspace
- func (w *Workspace) Assemble() error
- func (w *Workspace) Config() (*amconfig.Config, error)
- func (w *Workspace) ConfigString() string
- func (w *Workspace) EnsureRegressionState() error
- func (w *Workspace) SaveRegressionState(state *snapshot.RegressionState) error
- func (w *Workspace) Templates() (map[string]string, error)
- func (w *Workspace) Tests() []*types.TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workspace ¶
type Workspace struct {
Fragments []*fragment.Fragment
RegressionState *snapshot.RegressionState
// contains filtered or unexported fields
}
func Load ¶
func Load(cfg *config.LitmusConfig, logger logrus.FieldLogger) (*Workspace, error)
LoadAssembledWorkspace loads and assembles a workspace from config.
func New ¶
func New(cfg *config.LitmusConfig, logger logrus.FieldLogger) *Workspace
New creates a new workspace from a LitmusConfig.
func (*Workspace) Assemble ¶
Assemble produces the complete *amconfig.Config in w.Root by reading the workspace and merging every child fragment under <dir>/fragments.
When w.Logger is non-nil, Assemble emits structured debug entries describing each child as it is merged, plus a final summary. Errors include the offending fragment's directory for fast diagnosis.
func (*Workspace) ConfigString ¶
func (*Workspace) EnsureRegressionState ¶
EnsureRegressionState ensures the regression state is loaded into the workspace.
func (*Workspace) SaveRegressionState ¶
func (w *Workspace) SaveRegressionState(state *snapshot.RegressionState) error
SaveRegressionState writes the regression state (ID + tests) to regressions.litmus.yml.
Click to show internal directories.
Click to hide internal directories.