awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Go Testing Frameworks

Ranking updated Jul 13, 2026

For a testing framework for Go applications, the first results are onsi/ginkgo (Ginkgo is a comprehensive behavior-driven development framework for Go that provides a robust suite of tools for assertions, parallel test execution, and advanced diagnostic reporting), smartystreets/goconvey (GoConvey is a comprehensive testing framework for Go that provides a built-in assertion library, behavior-driven development syntax, and a real-time web dashboard for monitoring test execution and coverage) and stretchr/testify (Testify is a comprehensive and widely-adopted toolkit for Go that provides the essential assertion and mocking capabilities required for robust unit and integration testing workflows). golang/mock and vektra/mockery round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

We curate open-source GitHub repositories matching “best go testing frameworks”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Go Testing Frameworks

Find the best repos with AI.We'll search the best matching repositories with AI.
  • onsi/ginkgoonsi avatar

    onsi/ginkgo

    9,014View on GitHub↗

    Ginkgo is a behavior-driven development testing framework, assertion library, and test runner for Go. It provides a domain-specific language for writing human-readable specifications, organizing tests into hierarchical containers and subjects to describe system behavior. The project distinguishes itself through advanced execution control and observability, featuring a test runner capable of parallel distribution, sharding, and randomized execution order to detect flaky tests. It includes specialized diagnostic tools for goroutine leak detection, hanging spec monitoring, and failure state debu

    Ginkgo is a comprehensive behavior-driven development framework for Go that provides a robust suite of tools for assertions, parallel test execution, and advanced diagnostic reporting.

    GoAssertion LibrariesBehavior Driven DevelopmentParallel Test Execution
    View on GitHub↗9,014
  • smartystreets/goconveysmartystreets avatar

    smartystreets/goconvey

    8,415View on GitHub↗

    GoConvey is a behavioral testing framework for the Go programming language that provides a test runner, a code coverage tool, and a web-based monitoring dashboard. It integrates with the standard Go test command to organize tests into behavioral stories and conveyors. The project features a web interface that monitors the file system for source code changes and automatically triggers test execution to provide real-time feedback. This dashboard displays test results, failures, and a chronological history of execution status. The framework includes a state assertion system for verifying values

    GoConvey is a comprehensive testing framework for Go that provides a built-in assertion library, behavior-driven development syntax, and a real-time web dashboard for monitoring test execution and coverage.

    GoCode Coverage AnalysisCode Coverage ReportingsBehavior-Driven Testing
    View on GitHub↗8,415
  • stretchr/testifystretchr avatar

    stretchr/testify

    25,861View on GitHub↗

    Testify is a comprehensive testing toolkit for Go that provides a suite of assertion libraries and mocking frameworks to validate code behavior. It enables developers to write automated tests by comparing actual results against expected outcomes, ensuring that functional requirements are met throughout the development process. The project distinguishes itself through its flexible failure propagation, which allows tests to either halt execution immediately upon a failed requirement or return boolean results for conditional logic. It includes deep-equality object comparison and JSON normalizati

    Testify is a comprehensive and widely-adopted toolkit for Go that provides the essential assertion and mocking capabilities required for robust unit and integration testing workflows.

    GoMocking Frameworks
    View on GitHub↗25,861
  • golang/mockgolang avatar

    golang/mock

    9,361View on GitHub↗

    GoMock is a mocking framework for the Go programming language.

    This is a specialized mocking library for Go that provides essential test double capabilities, but it is a single-aspect tool rather than a comprehensive testing framework.

    GoTest Double LibrariesMocking Frameworks
    View on GitHub↗9,361
  • vektra/mockeryvektra avatar

    vektra/mockery

    7,141View on GitHub↗

    Mockery is a code generation tool that produces mock implementations from Go interfaces, designed to simplify unit testing by automating the creation of test doubles. It parses Go source files using abstract syntax tree analysis to extract interface method signatures, then generates complete mock struct types that implement those interfaces with configurable function fields for test injection. The tool distinguishes itself through its configuration and customization capabilities. Rather than embedding directives in source code annotations, Mockery reads generation settings from a YAML configu

    This is a specialized code generation tool for creating mock objects rather than a comprehensive testing framework that provides assertions, BDD, or test execution management.

    GoInterface Mock Generators
    View on GitHub↗7,141
  • microsoft/playwrightmicrosoft avatar

    microsoft/playwright

    91,074View on GitHub↗

    Playwright is a comprehensive browser automation framework designed for end-to-end testing and web workflow automation. It provides a unified API to drive web applications across multiple browser engines, enabling developers to simulate complex user interactions, perform web scraping, and validate application behavior in consistent, isolated environments. The framework distinguishes itself through a web-first testing paradigm that prioritizes stability and resilience. By utilizing an auto-waiting actionability engine and accessibility-tree-based locators, it eliminates common sources of test

    This is a browser automation and end-to-end testing framework for web applications, which serves a different purpose than a general-purpose Go unit and integration testing library.

    TypeScriptAssertion LibrariesBehavior-Driven TestingTest Parameterization
    View on GitHub↗91,074
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
onsi/ginkgo9KGoMITJun 14, 2026
smartystreets/goconvey8.4KGoNOASSERTIONJul 30, 2024
stretchr/testify
25.9K
Go
mit
Feb 17, 2026
golang/mock9.4KGoApache-2.0Jan 8, 2024
vektra/mockery7.1KGoBSD-3-ClauseJun 22, 2026
microsoft/playwright91.1KTypeScriptApache-2.0Jun 16, 2026

Related searches

  • a testing assertions and mocking library for Go
  • a testing framework for Rust projects
  • a testing framework for Dart applications
  • a testing framework for Java applications
  • a unit testing framework for C++
  • a testing framework for Swift applications
  • a testing framework for Kotlin projects
  • a testing framework for PHP applications