Skip to content

issues Search Results · repo:stretchr/testify language:Go

Filter by

810 results
 (65 ms)

810 results

instretchr/testify (press backspace or delete to remove)

Description I m trying to implement some custom assertions as part of a test double. I ve tried to follow along with the pattern where t.Helper() is called to register my assertion functions as helpers. ...
bug
  • joshriverscambia2019
  • Opened 
    5 days ago
  • #1702

Description I m using this library indirectly, through vektra/mockery. I have a mock that I use in a goroutine, and I don t expect any calls on it. However, because of a bug in my code, there sometimes ...
bug
  • greg0ire
  • 1
  • Opened 
    7 days ago
  • #1701

!-- If this is a question, consider using the discussion section of this repo -- !-- Here: https://github.com/stretchr/testify/discussions/new?category=q-a -- Description Out test suite uses AssertExpectations(t ...
enhancement
  • pmalek
  • Opened 
    12 days ago
  • #1700

Prerequisite // ConvertibleTo reports whether a value of the type is convertible to type u. // Even if ConvertibleTo returns true, the conversion may still panic. // For example, a slice of type []T ...
enhancement
  • Antonboom
  • Opened 
    27 days ago
  • #1699

It would be great if you could export the diff() function. Then it would be easier to create custom error messages. Example, I would like to avoid the two long string (expected and actual). The diff is ...
enhancement
  • guettli
  • Opened 
    on Jan 27
  • #1697

Description I ve found it to be common that I want to set up a mock expectation for a call that takes in a struct type, and I want the matcher to match only some of the struct fields. Usually it s because ...
enhancement
  • connorszczepaniak-wk
  • 1
  • Opened 
    on Jan 15
  • #1695

Hello everyone, I’d like to ask a quick question informally. https://github.com/stretchr/testify/commit/118fb8346630c192421c8914848381af9d4412a7#diff-cfb0727d3ab618e656775b3bb99089481b38a25f8ece2b10913e2d88e492a165R531 ...
  • tturbs
  • 5
  • Opened 
    on Jan 3
  • #1691

Description !-- A clear and concise description of what feature you are proposing -- I find the console output of this library very hard to read, sometimes it is hard to see where is the actual problem ...
enhancement: colored output
enhancement
wontfix
  • odeta939
  • 3
  • Opened 
    on Nov 21, 2024
  • #1682

Description Hello, team! I was surprised, but testify allows to set non-string in msgAndArgs... if this is the single argument: https://github.com/stretchr/testify/blob/89cbdd9e7b39eb58896d316a7495597d3aba4371/assert/assertions.go#L290-L296 ...
enhancement
  • Antonboom
  • 6
  • Opened 
    on Nov 13, 2024
  • #1679

!-- If this is a question, consider using the discussion section of this repo -- !-- Here: https://github.com/stretchr/testify/discussions/new?category=q-a -- Description !-- A detailed description of ...
bug
good first issue
pkg-assert
  • delca85
  • 3
  • Opened 
    on Nov 11, 2024
  • #1677
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub