Skip to content

v0.2.0

Compare
Choose a tag to compare
@mikesep mikesep released this 20 Jul 21:47
· 38 commits to main since this release
55ae3ef

Added

  • testgroup.T.Run() wraps testing.T.Run(), but passes your test a *testgroup.T instead of a *testing.T. This makes it convenient to use testgroup.T's helpers when writing table-driven tests.

Changed

  • The test group will now fail if:

    • the group object has no exported methods
    • the group object is passed by value, and it has exported methods with a pointer receiver

    This should help catch mistakes when writing tests.