-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
gingko confused about -ginkgo.timeout flag and won't run tests #945
Comments
hey there - it looks like you are using the V2 CLI but your test suite is written with Ginkgo V1. You need to use the major version of the CLI that matches the version of the library imported by your suite. |
Oh geeze...thanks! |
I really believe there ought to be an easy way to make this error a lot clearer (along with a clear way to install |
BTW that oh geeze was too myself not realizing the mismatch...not a complaint 😉 The error was fairly confusing though. Regardless, thanks for the help! |
ummm... I have now removed Thanks! |
the v1 cli lives i can imagine the v2 cli identifying that you are running it against a v1 repo and emitting a more useful warning. that could be something i add in the next v2 release. |
Thanks for the super-quick reply! and, LoL, being the idiot I am, I hadn't realized that "onsi" was an actual person 😆 |
Ok - maybe I'm missing something here:
I can see
Did I misunderstand and you meant somewhere else? |
thanks for the kind words y'all. and sorry installing things is giving you trouble. I just ran: ~ » mkdir foo
~ » cd foo
~/foo » go mod init example.com/foo
go: creating new go.mod: module example.com/foo
~/foo » go get github.com/onsi/ginkgo@v1.16.5
go get: added github.com/fsnotify/fsnotify v1.4.9
go get: added github.com/nxadm/tail v1.4.8
go get: added github.com/onsi/ginkgo v1.16.5
go get: added golang.org/x/sys v0.0.0-20210112080510-489259a85091
go get: added gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
~/foo » go install github.com/onsi/ginkgo/ginkgo
../go/pkg/mod/github.com/onsi/ginkgo@v1.16.5/ginkgo/bootstrap_command.go:15:2: missing go.sum entry for module providing package github.com/go-task/slim-sprig (imported by github.com/onsi/ginkgo/ginkgo); to add:
go get github.com/onsi/ginkgo/ginkgo@v1.16.5
../go/pkg/mod/github.com/onsi/ginkgo@v1.16.5/ginkgo/outline/outline.go:10:2: missing go.sum entry for module providing package golang.org/x/tools/go/ast/inspector (imported by github.com/onsi/ginkgo/ginkgo/outline); to add:
go get github.com/onsi/ginkgo/ginkgo/outline@v1.16.5
~/foo » go get github.com/onsi/ginkgo/ginkgo@v1.16.5
go get: installing executables with 'go get' in module mode is deprecated.
To adjust and download dependencies of the current module, use 'go get -d'.
To install using requirements of the current module, use 'go install'.
To install ignoring the current module, use 'go install' with a version,
like 'go install example.com/cmd@latest'.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
~/foo » go install github.com/onsi/ginkgo/ginkgo
~/foo » ginkgo version
Ginkgo Version 1.16.5
Ginkgo 2.0 is coming soon!
==========================
Ginkgo 2.0 is under active development and will introduce several new features, improvements, and a small handful of breaking changes.
A release candidate for 2.0 is now available and 2.0 should GA in Fall 2021. Please give the RC a try and send us feedback!
- To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md
- For instructions on using the Release Candidate visit https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md#using-the-beta
- To comment, chime in at https://github.com/onsi/ginkgo/issues/711
To silence this notice, set the environment variable: ACK_GINKGO_RC=true
Alternatively you can: touch $HOME/.ack-ginkgo-rc and got things to install. I'm not using |
Thanks!
(the "double" ginkgo) |
Ginkgo won't run tests:
Tests run fine with
go test
:The text was updated successfully, but these errors were encountered: