Go testing libraries
Testing libraries for Go, ranked by GitHub stars
آخر تحديث · GitHub stars (stars)
لماذا هؤلاء العشرون
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
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
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
ginkgo
BDD Testing Framework for Go.
9,081 stars 712 forkslast push 2026-11-02GoMIT
موجود أيضًا في: #3 Go (Golang) testing frameworks
-
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
-
6
rod
A Devtools driver to make web automation and scraping easy.
7,164 stars 489 forkslast push 2026-08-11GoMIT
-
7
go-sqlmock
Mock SQL driver for testing database interactions.
6,574 stars 424 forkslast push 2026-07-10GoNOASSERTION
-
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
-
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
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
uber-go/mock
Mocking framework for the Go programming language.
3,435 stars 185 forkslast push 2026-08-25GoApache-2.0
-
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
godog
Cucumber BDD framework for Go.
2,695 stars 285 forkslast push 2026-11-25GoMIT
موجود أيضًا في: #8 Go (Golang) testing frameworks
-
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
gomega
Rspec like matcher/assertion library.
2,359 stars 309 forkslast push 2026-10-10GoMIT
موجود أيضًا في: #9 Go (Golang) testing frameworks
-
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
jarcoal/httpmock
Easy mocking of HTTP responses from external resources.
2,078 stars 109 forkslast push 2026-11-03GoMIT
-
19
is
Professional lightweight testing mini-framework for Go.
1,980 stars 70 forkslast push 2024-02-08GoMIT
موجود أيضًا في: #10 Go (Golang) testing frameworks
-
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
المراجع
- 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.
- avelino/awesome-go (Testing), GitHub community list, 103 tools with a public repository.