SHORTLIST20
日本語
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
プログラミング

Go testing libraries

Testing libraries for Go, ranked by GitHub stars

更新 · GitHub stars (stars)

なぜこの20か

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

このリストは役に立ちましたか?
  1. 1

    Testify

    Sacred extension to the standard go testing package.

    26,264 stars 1,871 forkslast push 2026-11-20GoMIT

    こちらにも: #1 Go (Golang) testing frameworks

  2. 2

    keploy

    Generate Testcase and Data Mocks from API calls automatically.

    20,004 stars 2,470 forkslast push 2026-11-26GoApache-2.0

    こちらにも: #2 Go (Golang) testing frameworks#1 MongoDB tools

  3. 3

    ginkgo

    BDD Testing Framework for Go.

    9,081 stars 712 forkslast push 2026-11-02GoMIT

    こちらにも: #3 Go (Golang) testing frameworks

  4. 4

    GoConvey

    BDD-style framework with web UI and live reload.

    8,395 stars 557 forkslast push 2024-07-30GoNOASSERTION

    こちらにも: #4 Go (Golang) testing frameworks

  5. 5

    mockery

    Tool to generate Go interfaces.

    7,185 stars 471 forkslast push 2026-11-23GoBSD-3-Clause

  6. 6

    rod

    A Devtools driver to make web automation and scraping easy.

    7,164 stars 489 forkslast push 2026-08-11GoMIT

  7. 7

    go-sqlmock

    Mock SQL driver for testing database interactions.

    6,574 stars 424 forkslast push 2026-07-10GoNOASSERTION

  8. 8

    testcontainers-go

    A Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API...

    5,038 stars 661 forkslast push 2026-11-26GoMIT

    こちらにも: #5 Go (Golang) testing frameworks

  9. 9

    go-fuzz

    Randomized testing system.

    4,842 stars 275 forkslast push 2024-09-24GoApache-2.0

  10. 10

    go-cmp

    Package for comparing Go values in tests.

    4,684 stars 254 forkslast push 2026-11-13GoBSD-3-Clause

    こちらにも: #6 Go (Golang) testing frameworks

  11. 11

    playwright-go

    browser automation library to control Chromium, Firefox and WebKit with a single API.

    3,548 stars 250 forkslast push 2026-11-05GoMIT

  12. 12

    uber-go/mock

    Mocking framework for the Go programming language.

    3,435 stars 185 forkslast push 2026-08-25GoApache-2.0

  13. 13

    gavv/httpexpect

    Concise, declarative, and easy to use end-to-end HTTP and REST API testing.

    2,724 stars 241 forkslast push 2025-11-20GoMIT

    こちらにも: #7 Go (Golang) testing frameworks

  14. 14

    godog

    Cucumber BDD framework for Go.

    2,695 stars 285 forkslast push 2026-11-25GoMIT

    こちらにも: #8 Go (Golang) testing frameworks

  15. 15

    hoverfly

    HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI.

    2,533 stars 231 forkslast push 2026-11-25GoApache-2.0

  16. 16

    gomega

    Rspec like matcher/assertion library.

    2,359 stars 309 forkslast push 2026-10-10GoMIT

    こちらにも: #9 Go (Golang) testing frameworks

  17. 17

    moq

    Utility that generates a struct from any interface. The struct can be used in test code as a mock of the interface.

    2,208 stars 140 forkslast push 2026-10-14GoMIT

  18. 18

    jarcoal/httpmock

    Easy mocking of HTTP responses from external resources.

    2,078 stars 109 forkslast push 2026-11-03GoMIT

  19. 19

    is

    Professional lightweight testing mini-framework for Go.

    1,980 stars 70 forkslast push 2024-02-08GoMIT

    こちらにも: #10 Go (Golang) testing frameworks

  20. 20

    gnomock

    integration testing with real dependencies (database, cache, even Kubernetes or AWS) running in Docker, without mocks.

    1,486 stars 81 forkslast push 2026-04-13GoMIT

    こちらにも: #11 Go (Golang) testing frameworks

測り方

Every tool in the Testing section(s) of the community list avelino/awesome-go on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

参考資料

  1. avelino/awesome-go: Testing, GitHub community list (list text CC0/MIT per repository; star counts from the GitHub API). Checked 2026-11-26 18:19 UTC.
  2. avelino/awesome-go (Testing), GitHub community list, 103 tools with a public repository.