smartystreets / goconvey

Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
http://smartystreets.github.io/goconvey/
Other
8.23k stars 554 forks source link

can i get case name in Convey #679

Open jiushen opened 11 months ago

jiushen commented 11 months ago
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

kz-sher commented 6 months ago

@jiushen are you using IDE or terminal?