You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,25 @@ This is the go-openapi fork of the great [testify](https://github.com/stretchr/t
21
21
> [!NOTE]
22
22
> This is the home of `github.com/go-openapi/testify/v2`, an active, opinionated fork of `github.com/stretchr/testify`.
23
23
24
-
Main features:
25
-
26
-
* zero external dependencies
27
-
* opt-in dependencies for extra features (e.g. asserting YAML, colorized output)
28
-
* assertions using generic types (see [a basic example][example-with-generics-url]). [Read the fully story with generics][doc-generics]
29
-
*[searchable documentation][doc-url]
24
+
## Why choose `go-openapi/testify/v2`
25
+
26
+
* 95% compatible with `stretchr/testify` — if you already use it, our migration tool automates the switch
27
+
* Actively maintained: regular fixes and evolutions, many PRs proposed upstream are already in
28
+
* Zero external dependencies — you import what you need, with opt-in modules for extras (e.g. YAML, colorized output)
29
+
* Modernized codebase targeting go1.24+
30
+
* Go routine leak detection built in: zero-setup, no false positives, works with parallel tests (unlike `go.uber.org/goleak`)
31
+
* File descriptor leak detection (linux-only)
32
+
* Type-safe assertions with generics (see [a basic example][example-with-generics-url]) — migration to generics can be automated too. [Read the full story][doc-generics]
* Coming in `v2.5.0`: non-flaky async assertions using `synctest`, and internal tools exposed as standalone modules (spew, unified diff, goleak)
35
+
* We take documentation seriously: [searchable doc site][doc-url] with testable examples and a complete tutorial, plus detailed [godoc][godoc-url] for every assertion
36
+
37
+
### This fork isn't for everyone
38
+
39
+
* You need the `mock` package — we removed it and won't bring it back. For suites, we're [open to discussion][suite-discussion] about a redesigned approach
40
+
* Your project must support Go versions older than 1.24
41
+
* You rely on `testifylint` or other tooling that expects the `stretchr/testify` import path
42
+
* You need 100% API compatibility — we're at 95%, and the remaining 5% are intentional removals
30
43
31
44
## Announcements
32
45
@@ -174,6 +187,7 @@ Maintainers can cut a new release by either:
Copy file name to clipboardExpand all lines: docs/doc-site/project/README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ title: README
3
3
description: |
4
4
Introducing go-openapi/testify/v2.
5
5
6
+
- Why choose testify/v2
6
7
- Approach
7
8
- Main features
8
9
- Differences with v1
@@ -11,6 +12,26 @@ weight: 2
11
12
12
13
**The v2 our tests wanted**
13
14
15
+
## Why choose `go-openapi/testify/v2`
16
+
17
+
* 95% compatible with `stretchr/testify` — if you already use it, our migration tool automates the switch
18
+
* Actively maintained: regular fixes and evolutions, many PRs proposed upstream are already in
19
+
* Zero external dependencies — you import what you need, with opt-in modules for extras (e.g. YAML, colorized output)
20
+
* Modernized codebase targeting go1.24+
21
+
* Go routine leak detection built in: zero-setup, no false positives, works with parallel tests (unlike `go.uber.org/goleak`)
22
+
* File descriptor leak detection (linux-only)
23
+
* Type-safe assertions with generics (see [a basic example](../usage/EXAMPLES.md)) — migration to generics can be automated too. [Read the full story](../usage/GENERICS.md)
* Coming in `v2.5.0`: non-flaky async assertions using `synctest`, and internal tools exposed as standalone modules (spew, unified diff, goleak)
26
+
* We take documentation seriously: [searchable doc site](../../api/) with testable examples and a complete tutorial, plus detailed [godoc][godoc-url] for every assertion
27
+
28
+
### This fork isn't for everyone
29
+
30
+
* You need the `mock` package — we removed it and won't bring it back. For suites, we're [open to discussion](https://github.com/go-openapi/testify/discussions/75) about a redesigned approach
31
+
* Your project must support Go versions older than 1.24
32
+
* You rely on `testifylint` or other tooling that expects the `stretchr/testify` import path
33
+
* You need 100% API compatibility — we're at 95%, and the remaining 5% are intentional removals
0 commit comments