-
-
Notifications
You must be signed in to change notification settings - Fork 682
Open
Description
When running ginkgo outline
on a test file that has a DescribeTableSubtree
, this relationship doesn't seem to be reflected in the outline. This is causing issues when using https://github.com/joselitofilho/ginkgoTestExplorer
Example test file:
package main
import (
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func Test(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Test")
}
var _ = Describe("Describe", func() {
DescribeTableSubtree("Subtree", func() {
It("It", func() {
Expect(true).To(BeTrue())
})
},
Entry("EntrySubtree"),
Entry("EntrySubtree2"),
)
DescribeTable("Table", func() {
Expect(true).To(BeTrue())
},
Entry("EntryTable"),
Entry("EntryTable2"),
)
})
ginkgo outline main_test.go
:
Name,Text,Start,End,Spec,Focused,Pending,Labels
Describe,Describe,182,483,false,false,false,
It,It,256,307,true,false,false,
Entry,EntrySubtree,314,335,true,false,false,
Entry,EntrySubtree2,339,361,true,false,false,
DescribeTable,Table,367,480,false,false,false,
Entry,EntryTable,433,452,true,false,false,
Entry,EntryTable2,456,476,true,false,false,
I'm not sure what the expected output would since I'm not very familiar with the outline api
Metadata
Metadata
Assignees
Labels
No labels