Files
core/solutions/engine/zz_dump_test.go
T
terminarandClaude Opus 5.5 2481a0dd27 solutions: Solutions Guide engine (catalog, rules, wizard state, native config, knowledge index, CLI)
New nested module yetano.dev/yetano/core/solutions: loads the catalog
in assets/solutions on top of the Big Picture, evaluates questions and
conditions, resolves packages/modules/capabilities, generates native
configuration from typed fragments with per-value origins, and builds
architecture graph, plan, lock file and handbook. Knowledge index with
yetano: references, search and lint (incl. manual sections). CLI with
yet's conventions (solution, task, knowledge, open), standalone as
yetano-solutions. No execution, no network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:42:58 +01:00

29 lines
612 B
Go

package engine
import (
"os"
"testing"
)
func TestZZDump(t *testing.T) {
if os.Getenv("DUMP") == "" {
t.Skip()
}
c := assetsCatalog(t)
e := New(c)
x := c.Examples[os.Getenv("DUMP")]
in := NewInstance(x.Meta.ID, c.Lookup(x.Spec.Solution), x.Spec.Mode)
in.Spec.Parameters = x.Spec.Parameters
st, _ := e.Evaluate(in, nil)
for _, f := range st.Files {
t.Logf("=== %s\n%s", f.Path, f.Content)
}
for _, s := range st.Steps {
t.Logf("step %s [%s] %s", s.Phase, s.Run, s.Title)
}
for _, p := range st.Packages {
t.Logf("pkg %s %s %v", p.ID, p.Status, p.Reasons)
}
t.Log(GraphText(st.Graph))
}