Closed rudifa closed 2 months ago
The difference is https://pkg.go.dev/github.com/rogpeppe/go-internal/gotooltest. It's true that the gotooltest package is not linked from the testscript package's documentation, so I'd happily approve a small patch doing that.
Your PR above clarified this.
I was intrigued by the difference between
.txtar
files intended for running withtestscript first.txtar
and those intended for running withgo test other.txtar
.The files ran by
testscript
support the commandgo
with a variety of arguments, as documented intestscript -h
, in addition to commands, conditions and supporting files that are interpreted by thesmall script engine in the testscript package
; files run bygo test
do not support the commandgo
.I suggest that this difference should be mentioned and documented in testscript doc, for the benefit of newcomers.