Testing / Testing Frameworks

66 packages 4 resources

Packages (66)

Testify

Sacred extension to the standard go testing package.

25,988 1,721

keploy

Generate Testcase and Data Mocks from API calls automatically.

17,525 2,236

GoConvey

BDD-style framework with web UI and live reload.

8,418 558

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 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,855 605

go-cmp

Package for comparing Go values in tests.

4,635 223

httpexpect

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

2,718 242

godog

Cucumber BDD framework for Go.

2,626 276

is

Professional lightweight testing mini-framework for Go.

1,958 66

gnomock

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

1,489 78

go-vcr

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

1,382 82

tparse

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

1,248 36

testfixtures

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

1,232 90

embedded-postgres

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

1,184 106

goblin

Mocha like testing framework of Go.

890 76

goc

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

875 138

go-httpbin

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

846 175

baloo

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

779 29

gotest.tools

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

577 54

go-testdeep

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

463 17

gofight

API Handler Testing for Golang Router framework.

444 41

testza

Full-featured test framework with nice colorized output.

418 20

cupaloy

Simple snapshot testing addon for your test framework.

331 27

frisby

REST API testing framework.

275 26

endly

Declarative end to end functional testing.

267 38

got

An enjoyable golang test framework.

266 16

go-snaps

Jest-like snapshot testing in Golang.

260 9

arch-go

Architecture testing tool for Go projects.

259 21

go-hit

Hit is an http integration test framework written in golang.

256 9

go-carpet

Tool for viewing test coverage in terminal.

252 11

commander

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

230 19

charlatan

Tool to generate fake interface implementations for tests.

205 10

dbcleaner

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

163 13

jsonassert

Package for verifying that your JSON payloads are serialized correctly.

141 16

be

The minimalist generic test assertion library.

133 1

testcase

Idiomatic testing framework for Behavior Driven Development.

130 11

Testo

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

116 4

gocrest

Composable hamcrest-like matchers for Go assertions.

107 7

wstest

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

102 18

gherkingen

BDD boilerplate generator and framework.

96 4

testcerts

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

84 11

assert

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

68 16

restit

Go micro framework to help writing RESTful API integration test.

55 4

gospecify

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

gomatch

library created for testing JSON against patterns.

47 3

dsunit

Datastore testing for SQL, NoSQL, structured files.

45 9

should

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

42 5

fixenv

Fixture manage engine, inspired by pytest fixtures.

33 1

Hamcrest

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

30 5

flute

HTTP client testing framework.

22 1

schema

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

20 1

dft

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

19

testsql

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

17 2

gogiven

YATSPEC-like BDD testing framework for Go.

16 3

biff

Bifurcation testing framework, BDD compatible.

14 2

gosuite

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

12 4

Tt

Simple and colorful test tools.

9 1

trial

Quick and easy extendable assertions without introducing much boilerplate.

6 1

go-testing

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

5 2

go-testpredicate

Test predicate style assertions library with extensive diagnostics output.

5

envite

Dev and testing environment management framework.

4

go-mutesting

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

2

omg.testingtools

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

1

Gont

Go network testing toolkit for testing building complex network topologies using Linux namespaces.

Resources & Links (4)