{"modulePath":"github.com/windsorcli/cli","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package test\n\n## Constants\n\n```go\nconst SkipDefaultBlueprintURL = \" \"\n```\nSkipDefaultBlueprintURL is a sentinel for DefaultBlueprintURL that disables loading the default OCI blueprint (used in unit tests).\n\n## Types\n\n```go\ntype TestResult struct {\n\tName       string\n\tPassed     bool\n\tDiffs      []string\n\tSourceFile string\n}\n```\nTestResult represents the result of running a single test case.\n\n```go\ntype TestRunner struct {\n\tDefaultBlueprintURL string\n\tRunFunc             func(filter string) ([]TestResult, error)\n\t// contains filtered or unexported fields\n}\n```\nTestRunner discovers and executes blueprint composition tests.\n\n```go\nfunc NewTestRunner(rt *runtime.Runtime, artifactBuilder artifact.Artifact) *TestRunner\n```\nNewTestRunner creates a new TestRunner using the provided runtime and artifact builder. It stores base dependencies for creating isolated runtime instances for each test case, ensuring test isolation.\n\n```go\nfunc (r *TestRunner) Run(filter string) ([]TestResult, error)\n```\nRun discovers and executes test cases, returning results for each test. If filter is provided, only tests matching the filter name are executed.\n\n```go\nfunc (r *TestRunner) RunAndPrint(filter string) error\n```\nRunAndPrint discovers and executes test cases, printing results to stdout. If filter is provided, only tests matching the filter name are executed. Returns an error if tests fail or execution encounters an error.\n\n","path":"github.com/windsorcli/cli/pkg/test","name":"test","synopsis":"","isRedistributable":true}
