← All Go categories

Testing Go Libraries Ranking

Libraries for testing codebases and generating test data.

94 repositories, updated daily.

- Sacred extension to the standard go testing package.

26.1K
1.9K
Yesterday
+22 weekly
View

- Generate Testcase and Data Mocks from API calls automatically.

18.4K
2.3K
Yesterday
+14 weekly
View

.

14.1K
1.1K
Yesterday
+25 weekly
View

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

13.2K
885
Yesterday
+8 weekly
View

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

8.4K
558
Yesterday
-5 weekly
View

- Tool to generate Go interfaces.

7.2K
454
Yesterday
-1 weekly
View

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

7.1K
477
Yesterday
+10 weekly
View

- Mock SQL driver for testing database interactions.

6.6K
413
Yesterday
+0 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.

4.9K
623
Yesterday
+8 weekly
View

- Randomized testing system.

4.8K
276
2 days ago
+1 weekly
View

- Package for comparing Go values in tests.

4.7K
237
Yesterday
+2 weekly
View

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

3.5K
238
Yesterday
+7 weekly
View

- Mocking framework for the Go programming language.

3.4K
175
3 days ago
+0 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
278
2 days ago
+4 weekly
View

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

2.5K
228
Yesterday
+2 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
134
1 week ago
+0 weekly
View

- Easy mocking of HTTP responses from external resources.

2.1K
106
1 week ago
+0 weekly
View

- Professional lightweight testing mini-framework for Go.

2.0K
67
5 days ago
+2 weekly
View

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

1.5K
79
Yesterday
-1 weekly
View

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

1.4K
81
3 weeks ago
+0 weekly
View

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

1.3K
36
1 week ago
+0 weekly
View

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

1.2K
92
1 week 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
104
Yesterday
+2 weekly
View

- Tool for generating self-contained mock objects.

1.1K
101
1 week ago
+1 weekly
View

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

892
68
1 week ago
+0 weekly
View

- Mocha like testing framework of Go.

887
76
Yesterday
-1 weekly
View

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

873
138
3 days ago
-1 weekly
View

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

872
181
1 week ago
+0 weekly
View

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

796
50
Yesterday
+2 weekly
View

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

779
29
2 months ago
+0 weekly
View

- Mock generator for Go interfaces.

752
49
2 weeks ago
+0 weekly
View

- Single transaction based database driver mainly for testing purposes.

751
47
3 weeks ago
+0 weekly
View

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

577
54
1 week ago
+0 weekly
View

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

463
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.

431
31
Yesterday
+1 weekly
View

- Full-featured test framework with nice colorized output.

416
20
1 month ago
+0 weekly
View

- Simple snapshot testing addon for your test framework.

330
27
1 week ago
+0 weekly
View

- REST API testing framework.

275
26
1 month ago
+0 weekly
View

- Architecture testing tool for Go projects.

269
22
2 days ago
+2 weekly
View

- Declarative end to end functional testing.

269
38
1 week ago
+1 weekly
View

- An enjoyable golang test framework.

267
15
3 weeks ago
+0 weekly
View

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

255
9
2 weeks ago
+0 weekly
View

- Tool for viewing test coverage in terminal.

251
11
1 week ago
+0 weekly
View

- Generic fuzzing and delta-debugging framework.

248
10
1 week ago
+1 weekly
View

- Tool that reports coverage of files below set threshold.

236
33
3 days ago
+0 weekly
View

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

231
19
1 month ago
+0 weekly
View

- Tool to generate fake interface implementations for tests.

205
10
4 months ago
+0 weekly
View

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

200
17
1 month ago
+0 weekly
View

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

163
13
6 months ago
+0 weekly
View

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

143
16
1 week ago
+1 weekly
View

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

140
6
2 days ago
+1 weekly
View

- Idiomatic testing framework for Behavior Driven Development.

133
11
2 weeks ago
+0 weekly
View

- The minimalist generic test assertion library.

133
1
2 months ago
+0 weekly
View

- Composable hamcrest-like matchers for Go assertions.

108
7
1 month ago
+0 weekly
View

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

102
18
1 year ago
+0 weekly
View

- BDD boilerplate generator and framework.

97
4
6 days ago
+0 weekly
View

- Tool for using localstack in AWS testing.

88
19
4 days ago
+0 weekly
View

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

86
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.

71
5
4 weeks ago
+0 weekly
View

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

67
16
1 week ago
+0 weekly
View

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

56
4
1 month 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
7
6 months ago
+0 weekly
View

- Datastore testing for SQL, NoSQL, structured files.

47
9
1 week ago
+1 weekly
View

- library created for testing JSON against patterns.

47
3
4 months ago
+0 weekly
View

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

44
10
1 month ago
+0 weekly
View

- Fixture manage engine, inspired by pytest fixtures.

34
1
1 month ago
+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

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

29
2
Yesterday
+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
5 months ago
+0 weekly
View

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

19
0
7 months ago
+0 weekly
View

- A simple way to generate mocks for multiple purposes.

18
0
10 months ago
+0 weekly
View

- YATSPEC-like BDD testing framework for Go.

17
3
1 month ago
+0 weekly
View

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

17
2
11 months ago
+0 weekly
View

- Bifurcation testing framework, BDD compatible.

14
2
2 years ago
+0 weekly
View

- Testing helper for concurrency.

13
4
3 weeks ago
+0 weekly
View

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

13
1
3 weeks 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 month 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

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

7
0
1 month ago
+0 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 week ago
+0 weekly
View

- Test predicate style assertions library with extensive diagnostics output.

6
0
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
1 month 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
5 days ago
+1 weekly
View

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

3
0
2 days 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
1 month ago
+0 weekly
View

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

1
0
3 years ago
+0 weekly
View