You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After run ginkgo with ginkgo boostrap -nodep. It cannot run due to compile error. Reproduce issue steps below:
$ go get -v -u github.com/onsi/ginkgo/...
github.com/onsi/ginkgo (download)
github.com/hpcloud/tail (download)
$ mkdir newsys # this folder create under my $GOPATH/src/github.com/wingyplus
$ cd newsys/
$ ginkgo bootstrap -nodot
Generating ginkgo test suite bootstrap for newsys in:
newsys_suite_test.go
To update the nodot declarations in the future, switch to this directory and run:
ginkgo nodot
$ ginkgo
Failed to compile newsys:
# git.domain/repo/newsys_test [git.domain/repo/newsys.test]
./newsys_suite_test.go:82:5: Expect redeclared in this block
previous declaration at ./newsys_suite_test.go:70:5
./newsys_suite_test.go:83:5: Eventually redeclared in this block
previous declaration at ./newsys_suite_test.go:72:5
./newsys_suite_test.go:84:5: Consistently redeclared in this block
previous declaration at ./newsys_suite_test.go:74:5
Ginkgo ran 1 suite in 1.325145506s
Test Suite Failed
After I found this error, I grep Expect to see when it redeclared:
Previously, ginkgo bootstrap -nodot will make compile error because
it export function including method. Fix it by ignore FuncDecl if
Recv is not nil.
Fixesonsi#557
Previously, ginkgo bootstrap -nodot will make compile error because
it export function including method. Fix it by ignore FuncDecl if
Recv is not nil.
Fixes#557
After run ginkgo with
ginkgo boostrap -nodep
. It cannot run due to compile error. Reproduce issue steps below:After I found this error, I grep
Expect
to see when it redeclared:The text was updated successfully, but these errors were encountered: