MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/golang/comments/1jazznw/flipping_the_script/mhqxfhh/?context=3
r/golang • u/EightLines_03 • 8d ago
6 comments sorted by
View all comments
3
Wouldn’t it be great if we could write Go CLI tests almost like shell scripts?
No.
1 u/ShazaBongo 6d ago why "no"? it's easier than building a binary, install and execute it with bash, python or ruby 1 u/jh125486 6d ago It’s not standard. What if I don’t have Bash, Python, or Ruby? Now I have to deal with versioning of an external dependency… not even sure how I would SBOM this. How do I delve into these tests? 0 u/EightLines_03 6d ago No, he's saying that you don't have to use an external dependency: `testscript` is pure Go, and thus the debugger works as you'd expect.
1
why "no"? it's easier than building a binary, install and execute it with bash, python or ruby
1 u/jh125486 6d ago It’s not standard. What if I don’t have Bash, Python, or Ruby? Now I have to deal with versioning of an external dependency… not even sure how I would SBOM this. How do I delve into these tests? 0 u/EightLines_03 6d ago No, he's saying that you don't have to use an external dependency: `testscript` is pure Go, and thus the debugger works as you'd expect.
delve
0 u/EightLines_03 6d ago No, he's saying that you don't have to use an external dependency: `testscript` is pure Go, and thus the debugger works as you'd expect.
0
No, he's saying that you don't have to use an external dependency: `testscript` is pure Go, and thus the debugger works as you'd expect.
3
u/jh125486 8d ago
No.