Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i get case name in Convey #679

Open
jiushen opened this issue Oct 7, 2023 · 1 comment
Open

can i get case name in Convey #679

jiushen opened this issue Oct 7, 2023 · 1 comment

Comments

@jiushen
Copy link

jiushen commented Oct 7, 2023

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
Copy link

kz-sher commented Feb 16, 2024

@jiushen are you using IDE or terminal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants