Skip to content

can i get case name in Convey #679

@jiushen

Description

@jiushen
func TestIntegerStuff(t *testing.T) {
	Convey("Given some integer with a starting value", t, func() {
		x := 1
                //CAN I GET "Given some integer with a starting value" HERE???
		Convey("When the integer is incremented", func() {
			x++
                        //CAN I GET "When the integer is incremented" HERE???
			Convey("The value should be greater by one", func() {
				//CAN I GET "The value should be greater by one" HERE???
				So(x, ShouldEqual, 2)
			})
		})
	})
}

as comment in the above code, can i get case name in Convey
i've tried func(c C), still can't find the way

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions