apigear-io / cli

The ApiGear client as go project
https://apigear.io
MIT License
1 stars 2 forks source link

Use https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript to write new cli tests #113

Open jryannel opened 9 months ago

jryannel commented 9 months ago

We need to have a way to run the apigear cli as tests to test all the different cmd options. The testscript approach seems to be fine and it is extracted from the go internals package (so used also to test go cmd line).

jryannel commented 9 months ago

See also https://bitfieldconsulting.com/golang/test-scripts (+2 blog entries)