Skip to content

Add suite caller testing.T for reflection#9

Merged
metafates merged 1 commit into
mainfrom
suite-caller-testing-t
May 19, 2026
Merged

Add suite caller testing.T for reflection#9
metafates merged 1 commit into
mainfrom
suite-caller-testing-t

Conversation

@metafates
Copy link
Copy Markdown
Member

TL;DR:

package testoreflect

// SuiteInfo is the information about suite.
type SuiteInfo struct {
	...

	// TestingT is the [testing.T] of the caller.
	//
	// 	func TestFoo(t *testing.T) {
	//		testo.RunSuite(t, new(Suite))
	// 		//             ^ that t
	// 	}
	TestingT TestingT

	...
}

@metafates metafates self-assigned this May 19, 2026
@metafates metafates merged commit a2b5455 into main May 19, 2026
5 checks passed
@metafates metafates deleted the suite-caller-testing-t branch May 19, 2026 20:54
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

Successfully merging this pull request may close these issues.

1 participant