Documentation
¶
Overview ¶
Package conformance provides a test suite that verifies a murli-enabled CLI binary satisfies the murli 1.0 contract. Import it in your CLI's test suite to get continuous contract compliance checks.
Usage:
func TestConformance(t *testing.T) {
suite := conformance.NewSuite("/path/to/your/binary")
suite.Check(t)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct {
// BinaryPath is the path to the CLI binary to test.
BinaryPath string
}
Suite runs conformance checks against a murli-enabled CLI binary.
func (*Suite) Check ¶
Check runs all generic conformance checks. Call from your TestConformance function.
func (*Suite) CheckDescribe ¶
CheckDescribe verifies that `binary describe` returns valid JSON satisfying the murli DescribeOutput contract: schema_version, name, and capabilities are present.
Click to show internal directories.
Click to hide internal directories.