Package: wnpp Severity: wishlist Owner: Guillem Jover <[email protected]>
* Package name : golang-github-go-openapi-testify Version : 2.5.0-1 Upstream Author : OpenAPI Initiative golang toolkit * URL : https://github.com/go-openapi/testify * License : Apache-2.0 and MIT and ISC and BSD-3-Clause Programming Lang: Go Description : zero-dependency assertions library A set of go packages that provide tools for testifying (verifying) that your code behaves as you intended. . This is an active opinionated go-openapi fork of the great testify github.com/stretchr/testify package. . Its main features are: . * 95% compatible with stretchr/testify — if you already use it, the migration tool automates the switch, * Actively maintained: regular fixes and evolutions, many PRs proposed upstream are already in, * Zero external dependencies — you import what you need, with opt-in modules for extras (e.g. YAML, colorized output) * Modernized codebase targeting go 1.25+, * Go routine leak detection built in: zero-setup, no false positives, works with parallel tests (unlike go.uber.org/goleak), * File descriptor leak detection (linux-only), * Type-safe assertions with generics (see a basic example (https://go-openapi.github.io/testify#usage-with-generics)) — migration to generics can be automated too. Read the full story (https://go-openapi.github.io/testify/usage/generics), * Safe async assertions, extended JSON & YAML assertions, * Non-flaky async assertions using synctest, and internal tools exposed as standalone modules (spew, unified diff, goleak), * Documentation: searchable site (https://go-openapi.github.io/testify) with testable examples and a complete tutorial, plus detailed godoc (https://pkg.go.dev/github.com/go-openapi/testify/v2) for every assertion. . This fork isn't for everyone: . * You need the mock package — this got removed and won't be brought back. For suites, this is open to discussion (https://github.com/go-openapi/testify/discussions/75) about a redesigned approach, * Your project must support Go versions older than 1.25, * You rely on testifylint or other tooling that expects the stretchr/testify import path, * You need 100% API compatibility — the project is at 95%, and the remaining 5% are intentional removals. . Status: . Design and exploration phase completed. The published API is now stable: moving forward, API changes will remain backward-compatible with v2.4.0. This package is required by new versions of golang-github-go-openapi-* packages. Thanks, Guillem

