Closed abourree closed 6 months ago
Environment:
$cat /etc/debian_version trixie/sid $go version go version go1.21.5 linux/amd64 $ginkgo version Ginkgo Version 2.12.1
ginkgo outline should support test file generated with --nodot option.
--nodot
For the following test file generated without --nodot option:
package issue_test import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("Blabla", func() { config := 0 Expect(config).To(BeComparableTo(0)) })
The command ginkgo outline blabla_test.go output
ginkgo outline blabla_test.go
Name,Text,Start,End,Spec,Focused,Pending,Labels Describe,Blabla,96,177,false,false,false,""
But same test geenrated with --nodot option:
package issue_test import ( "github.com/onsi/ginkgo/v2" "github.com/onsi/gomega" ) var _ = ginkgo.Describe("Blabla", func() { config := 0 gomega.Expect(config).To(gomega.BeComparableTo(0)) })
Name,Text,Start,End,Spec,Focused,Pending,Labels
thanks @abourree - i have a fix for this on master now and will cut a release soon
Perfect, now Ginkgo Explorer extension in vsCode can outline and I can easy run test from my IDE :-D
Environment:
ginkgo outline should support test file generated with
--nodot
option.For the following test file generated without
--nodot
option:The command
ginkgo outline blabla_test.go
outputBut same test geenrated with
--nodot
option:The command
ginkgo outline blabla_test.go
output