← All Go categories

Testing Go Libraries Ranking

Libraries for testing codebases and generating test data.

95 repositories, updated daily.

- Sacred extension to the standard go testing package.

26.2K
1.9K
Yesterday
+7 weekly
View

- Generate Testcase and Data Mocks from API calls automatically.

18.5K
2.4K
Yesterday
+23 weekly
View

.

14.3K
1.1K
Yesterday
+18 weekly
View

- a way to drive/test Chrome, Safari, Edge, Android Webviews, and other browsers supporting the Chrome Debugging Protocol.

13.3K
889
Yesterday
+5 weekly
View

- BDD-style framework with web UI and live reload.

8.4K
558
5 days ago
+0 weekly
View

- Tool to generate Go interfaces.

7.2K
459
4 days ago
+2 weekly
View

- A Devtools driver to make web automation and scraping easy.

7.1K
484
Yesterday
+11 weekly
View

- Mock SQL driver for testing database interactions.

6.6K
418
5 days ago
+2 weekly
View

- 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 enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.

5.0K
638
Yesterday
+10 weekly
View

- Randomized testing system.

4.8K
276
1 week ago
+0 weekly
View

- Package for comparing Go values in tests.

4.7K
242
6 days ago
+1 weekly
View

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

3.5K
246
Yesterday
+3 weekly
View

- Mocking framework for the Go programming language.

3.4K
178
Yesterday
+5 weekly
View

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

2.7K
241
5 days ago
+1 weekly
View

- Cucumber BDD framework for Go.

2.7K
280
2 days ago
+2 weekly
View

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

2.5K
230
2 days ago
+8 weekly
View

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

2.2K
135
3 days ago
+2 weekly
View

- Easy mocking of HTTP responses from external resources.

2.1K
107
1 week ago
+0 weekly
View

- Professional lightweight testing mini-framework for Go.

2.0K
67
Yesterday
-1 weekly
View

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

1.5K
80
4 days ago
-1 weekly
View

- Record and replay your HTTP interactions for fast, deterministic and accurate tests.

1.4K
84
2 days ago
+1 weekly
View

- CLI tool for summarizing go test output. Pipe friendly. Compatible with go test flags.

1.3K
37
3 days ago
+1 weekly
View

- Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test.

1.2K
105
Yesterday
+3 weekly
View

- A helper for Rails' like test fixtures to test database applications.

1.2K
93
1 week ago
+1 weekly
View

- Tool for generating self-contained mock objects.

1.1K
102
Yesterday
+1 weekly
View

- An implementation of [failpoints](https://www.freebsd.org/cgi/man.cgi?query=fail) for Golang.

895
68
6 days ago
+1 weekly
View

- HTTP testing and debugging tool with various endpoints for client testing.

885
183
5 days ago
+1 weekly
View

- Mocha like testing framework of Go.

884
75
2 weeks ago
+0 weekly
View

- Goc is a comprehensive coverage testing system for The Go Programming Language.

874
138
2 days ago
-1 weekly
View

- Type-safe bindings for the Chrome Debugging Protocol that can be used with browsers or other debug targets that implement it.

796
49
5 days ago
+1 weekly
View

- Expressive and versatile end-to-end HTTP API testing made easy.

779
29
4 months ago
+0 weekly
View

- Mock generator for Go interfaces.

752
49
1 week ago
+0 weekly
View

- Single transaction based database driver mainly for testing purposes.

752
47
3 weeks ago
+0 weekly
View

- A collection of packages to augment the go testing package and support common patterns.

576
55
1 week ago
+0 weekly
View

- Extremely flexible golang deep comparison, extends the go testing package.

462
17
6 days ago
+0 weekly
View

- API Handler Testing for Golang Router framework.

446
40
1 week ago
+0 weekly
View

- A general pureposed function mocking library.

430
31
4 days ago
-1 weekly
View

- Full-featured test framework with nice colorized output.

415
20
1 week ago
+0 weekly
View

- Simple snapshot testing addon for your test framework.

331
27
1 week ago
+0 weekly
View

- REST API testing framework.

275
26
3 months ago
+0 weekly
View

- Architecture testing tool for Go projects.

273
22
2 weeks ago
+0 weekly
View

- Declarative end to end functional testing.

269
39
2 weeks ago
+0 weekly
View

- An enjoyable golang test framework.

266
15
3 weeks ago
+0 weekly
View

- Hit is an http integration test framework written in golang.

255
9
2 months ago
+0 weekly
View

- Tool for viewing test coverage in terminal.

250
11
2 weeks ago
+0 weekly
View

- Generic fuzzing and delta-debugging framework.

248
10
1 month ago
+0 weekly
View

- Tool that reports coverage of files below set threshold.

241
33
1 week ago
+0 weekly
View

- Tool for testing cli applications on windows, linux and osx.

232
19
1 month ago
+0 weekly
View

- Tool to generate fake interface implementations for tests.

205
8
6 months ago
+0 weekly
View

- HTTP mock for Golang: record and replay HTTP interactions for offline testing.

200
17
3 weeks ago
+0 weekly
View

- Clean database for testing purpose, inspired by `database_cleaner` in Ruby.

163
13
7 months ago
+0 weekly
View

- Plugin-based testing framework with suites, parallel tests, hooks and parametrization. Inspired by Pytest.

162
6
2 days ago
+7 weekly
View

- Package for verifying that your JSON payloads are serialized correctly.

143
18
1 week ago
+0 weekly
View

- Idiomatic testing framework for Behavior Driven Development.

133
10
1 week ago
+0 weekly
View

- The minimalist generic test assertion library.

133
1
3 weeks ago
+0 weekly
View

- Composable hamcrest-like matchers for Go assertions.

108
7
1 week ago
+0 weekly
View

- Websocket client for unit-testing a websocket http.Handler.

102
17
1 year ago
+0 weekly
View

- BDD boilerplate generator and framework.

99
4
3 weeks ago
+0 weekly
View

- Tool for using localstack in AWS testing.

88
19
6 days ago
+0 weekly
View

- Stateless Kubernetes-native hub that routes Selenium, Playwright, and MCP sessions to on-demand browser pods via custom resources.

88
29
1 week ago
+0 weekly
View

- Dynamically generate self-signed certificates and certificate authorities within your test functions.

84
11
1 week ago
+0 weekly
View

- A test-friendly replacement for the native `time` package.

70
5
1 month ago
+0 weekly
View

- Basic Assertion Library used along side native go testing, with building blocks for custom assertions.

67
16
1 month ago
+0 weekly
View

- Go micro framework to help writing RESTful API integration test.

54
4
3 weeks ago
+0 weekly
View

- This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec.

52
6
8 months ago
+0 weekly
View

- Testing library with zero dependencies, detailed struct diffs and human-readable error messages.

47
11
2 days ago
+1 weekly
View

- Datastore testing for SQL, NoSQL, structured files.

47
9
1 month ago
+0 weekly
View

- library created for testing JSON against patterns.

47
3
6 months ago
+0 weekly
View

- Fixture manage engine, inspired by pytest fixtures.

35
1
1 week ago
+1 weekly
View

- Type-safe factories for generating mock and fake data in Go, inspired by factory_boy and interface-forge.

30
2
Yesterday
+0 weekly
View

- fluent framework for declarative Matcher objects that, when applied to input values, produce self-describing results.

30
5
2 years ago
+0 weekly
View

- HTTP client testing framework.

23
1
Yesterday
+0 weekly
View

- Mock object for Go http.ResponseWriter.

23
6
2 years ago
+0 weekly
View

- Quick and easy expression matching for JSON schemas used in requests and responses.

20
1
7 months ago
+0 weekly
View

- Lightweight, zero dependency docker containers for testing (or more).

19
0
9 months ago
+0 weekly
View

- A simple way to generate mocks for multiple purposes.

18
0
11 months ago
+0 weekly
View

- YATSPEC-like BDD testing framework for Go.

17
3
2 months ago
+0 weekly
View

- Generate test data from SQL files before testing and clear it after finished.

17
2
1 year ago
+0 weekly
View

- Fast, stealth-first browser automation library using Chrome DevTools Protocol over WebSocket with no external dependencies.

14
1
2 weeks ago
+0 weekly
View

- Bifurcation testing framework, BDD compatible.

14
2
2 years ago
+0 weekly
View

- Testing helper for concurrency.

13
4
1 month ago
+0 weekly
View

- Brings lightweight test suites with setup/teardown facilities to `testing` by leveraging Go1.7's Subtests.

12
4
2 years ago
+0 weekly
View

- Simple and colorful test tools.

10
1
1 week ago
+0 weekly
View

- Mock filesystem for Go testing with error injection and latency simulation, built on `testing/fstest.MapFS`.

9
0
1 week ago
+0 weekly
View

- Test predicate style assertions library with extensive diagnostics output.

7
0
2 days ago
+1 weekly
View

- CLI tool to generate typed and framework-agnostic interface mocks, with support for generics.

7
0
2 months ago
+0 weekly
View

- Mutation testing for Go with CI quality gates, coverage-aware MSI, baseline tracking, and git-diff filtering.

6
0
3 days ago
+1 weekly
View

- Go testing extension, that allows a simple setup of strongly isolated unit, component, and integration test providing advanced mock support extending gomock and gock.

6
2
1 month ago
+0 weekly
View

- Quick and easy extendable assertions without introducing much boilerplate.

6
1
3 years ago
+0 weekly
View

- Dev and testing environment management framework.

5
0
2 months ago
+0 weekly
View

- Framework-agnostic evaluation library for testing Go agents and MCP servers with deterministic checks, CI-ready exit codes, and zero-code YAML-based testing.

4
0
1 month ago
+0 weekly
View

- Golang MySQL testcontainer to help with MySQL integration testing.

3
1
1 year ago
+0 weekly
View

- CLI runner for JetBrains .http files with scripting, assertions, gRPC, and load testing.

1
0
2 months ago
+0 weekly
View

- The simple library for change a values of private fields for testing.

1
0
3 years ago
+0 weekly
View

- Expressive, zero-boilerplate WebSocket mock server for testing with fault injection and assertions.

0
0
3 weeks ago
+0 weekly
View