Skip to content

Conversation

@chaptersix
Copy link
Contributor

@chaptersix chaptersix commented Oct 9, 2025

What changed?

Added a lint rule to forbid the embedding of require.Assertions in testify test suites.

Why?

When a test suite uses embedded require.Assertions on a test suite failures are not correctly attributed to subtests. Instead developers should use the require package directly and pass in the appropriate context.

How did you test it?

  • built
  • run locally and tested manually

@chaptersix
Copy link
Contributor Author

image

@chaptersix chaptersix marked this pull request as ready for review October 9, 2025 15:45
@chaptersix chaptersix requested review from a team as code owners October 9, 2025 15:45
@chaptersix chaptersix closed this Oct 10, 2025
@chaptersix chaptersix deleted the alex/forbid branch October 29, 2025 00:50
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.

3 participants