-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add 'gnodev test' command #149
Conversation
f6df414
to
98e1d39
Compare
ac5e446
to
7cb55a9
Compare
@jaekwon this first version is ready for review, it requires having all the source files in a cloned gnolang/gno repo I plan to make something like But that’ll be huge, and in another PR :) Also, I only integrated the current test mode that runs a whole file and writes the Output and Error as comment; I will then look how to manage the standard |
|
656575f
to
52ac51d
Compare
// fmt -- gofmt | ||
// clean | ||
// graph | ||
// vendor -- download deps from the chain in vendor/ | ||
// list -- list packages | ||
// run -- call render(), or maybe create a new main? | ||
// publish/release | ||
// generate | ||
// doc -- godoc | ||
// "vm" -- starts an in-memory chain that can be interacted with? | ||
// bug -- start a bug report | ||
// version -- show gnodev, golang versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new feature ides for gnodev
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
… able to skip unwanted .go files Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
d54bfbc
to
60cc638
Compare
IMHO, I feel that testing with [1]: testscript was originally created for testing the Go compiler itself. |
Yep I agree and I’m for going more and more with the standard go testing package as soon as it will be supported with gnodev. Additionally to being the historical custom mode for Gno; there are still some advantages that could eventually be interesting to keep, like the format itself which is relatively like a « main » program and gives a whole new sense to contract testing (IMHO); but I hope that I will be able to mimic this with the official « func ExampleXXX » of std go which offers similar concise tests, but only supports Output and not Error. The biggest game changer that will help get less/rid of historical testing in gno dev will certainly be a strong « testutil » package to replace everything managed with custom comments today. Looking forward for the future Gno :) |
Usage
Example