-
Notifications
You must be signed in to change notification settings - Fork 375
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: gno test
support external pkgs
#682
Conversation
Makefile
Outdated
@@ -46,6 +46,8 @@ install_gnokey: | |||
install_gnodev: | |||
@echo "Installing gnodev" | |||
go install ./cmd/gnodev | |||
@echo "Copying stdlibs" | |||
rsync -ur stdlibs $${HOME}/.gno |
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.
What about embedding stdlibs
in binary with go:embed
?
cmd/gnodev/test.go
Outdated
@@ -114,7 +123,7 @@ func execTest(cfg *testCfg, args []string, io *commands.IO) error { | |||
|
|||
// guess opts.RootDir | |||
if cfg.rootDir == "" { | |||
cfg.rootDir = guessRootDir() |
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.
I like this :)
TLDR is:
|
3bb474d
to
8f8444d
Compare
test
support for external contractstest
support for external pkgs
8f8444d
to
83c84aa
Compare
@harry-hov can you checkout #1014, I think you should collaborate to make your work merged. |
It may be a small detail, but based on the |
Fix bug where `gno test` command doesn't recognize `_test.gno`/`_filetest.gno` file if directly passed as arg. Fixes another bug where `gno test` avoids absolute path in arguments. Note: This PR may contain some code that will be used to support future PR like #682 and PR that I will open after this to support patterns in arg.
…ng#945) Fix bug where `gno test` command doesn't recognize `_test.gno`/`_filetest.gno` file if directly passed as arg. Fixes another bug where `gno test` avoids absolute path in arguments. Note: This PR may contain some code that will be used to support future PR like gnolang#682 and PR that I will open after this to support patterns in arg.
83c84aa
to
2a19b15
Compare
test
support for external pkgsgno test
support external pkgs
2a19b15
to
7ebed04
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #682 +/- ##
=======================================
Coverage 46.74% 46.74%
=======================================
Files 492 492
Lines 69616 69605 -11
=======================================
- Hits 32542 32539 -3
+ Misses 34363 34354 -9
- Partials 2711 2712 +1 ☔ View full report in Codecov by Sentry. |
gno test
support external pkgsgno test
support external pkgs
bdcaa37
to
2be4499
Compare
1bdaf8d
to
380d80c
Compare
Look for downloaded packages in GNOHOME
380d80c
to
711d50f
Compare
Closing as draft for 1yr+. Also, I think it's misguided to begin with. |
Also look for pkg/realm in
GNOHOME
(pkgs fetched from chain viamod download
)Now developers can run
gno mod download
beforegno test
to support packages that are not part of/examples
directory