issues Search Results · repo:stretchr/testify language:Go
Filter by
823 results
(63 ms)823 results
instretchr/testify (press backspace or delete to remove)Problem
When assert.Equal() fails on arrays/slices, it s hard to find the exact difference:
Not equal:
expected: []struct { ID int; Status string; Value int }{struct { ID int; Status string; Value int ...
assert.EqualValues
enhancement: extend API
enhancement: output format
enhancement
pkg-assert
Andrei-hub11
- 4
- Opened 12 days ago
- #1762
!-- 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
The addition of omitzero to ...
documentation
enhancement
pkg-assert
ccoVeille
- 2
- Opened 15 days ago
- #1759
This question follows this PR
- https://github.com/stretchr/testify/pull/1567
- https://github.com/stretchr/objx/pull/140
Context: objx depends on testify for its tests, testify depends on objx ...
dependencies
ccoVeille
- 8
- Opened 19 days ago
- #1752
But now, I wonder if we shouldn t check other Error Asserters such as ErrorContains and ErrorAs.
The same check might need to be applied.
EDIT confirmed: ErrorAs has the same issue
https://go.dev/play/p/Re92KjYzoaE ...
bug
good first issue
pkg-assert
brackendawson
- 2
- Opened on May 8
- #1733
Description
In case of a panic inside MethodCalled, the mock mutex is not released. All subsequent calls to mock methods will block
and the test will timeout eventually.
This is a problem if we use testing ...
bug
pkg-mock
peczenyj
- Opened on Apr 26
- #1731
Testify uses the yaml package provided by https://github.com/go-yaml/yaml. After no development for a long period, a few
days ago it finally got archived. Testify should migrate to another yaml package ...
dependencies
enhancement
YAML
xqqp
- 11
- Opened on Apr 4
- #1724
Description
If a test gets skipped in SetupTest() in a suite that implements WithStats, the suite will panic on shutdown.
Step To Reproduce
package main
import (
testing
github.com/stretchr/testify/suite ...
bug
pkg-suite
FGasper
- Opened on Apr 2
- #1722
Description
When using assert.Contains on byte slices, the assertion fails even if the expected subsequence exists.
Environment:
- Go version: 1.23
- Testify version: v1.10.0
Step To Reproduce ...
bug
enhancement
kristiyanpd
- 2
- Opened on Mar 27
- #1720
Description
Mock.MethodCalled calls Mock.mutex.Lock. Then, it calls Mock.findExpectedCall which searches the Mock s list of expected
calls. When it comes across a potential match, it calls Diff on the ...
bug
philflip12
- 1
- Opened on Mar 25
- #1719
Hi! I need to mock an interface which has a method called On.
type MyMockedObj struct {}
func (obj *MyMockedObj) On() error {
arguments := obj.Called()
return arguments.Error(0)
}
func TestThis() ...
frux
- Opened on Mar 23
- #1715

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 IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
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 IssuesProTip!
Restrict your search to the title by using the in:title qualifier.