github.com/abecodes/dft

dft

Package dft (Docker For Testing) is a lightweight wrapper around docker based on the std lib.

50

Decision Signals

Health score 50/100, confidence 80/100.

Caution
Maintenance 45
Adoption 7
Security 92
Maturity 55
Developer DX 83
Confidence 80

Install

go get github.com/abecodes/dft

Package Data

updated May 28, 2026
Latest versionv0.0.3
Imported by0 packages
Stars0
Forks0
Last activity1 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

15 symbols
SymbolKindSynopsis
Container Type type Container struct{}
Container.ExposedPortAddresses Method func (c *Container) ExposedPortAddresses(port uint) ([]string, bool)
Container.ExposedPorts Method func (c *Container) ExposedPorts(port uint) ([]uint, bool)
Container.Logs Method func (c *Container) Logs(ctx context.Context) (string, error)
Container.Stop Method func (c Container) Stop(ctx context.Context) error
Container.WaitCmd Method func (c *Container) WaitCmd(ctx context.Context, cmd []string, ...) error
StartContainer Function func StartContainer(ctx context.Context, imageName string, opts ...ContainerOption) (*Container, error)
ContainerOption Type type ContainerOption func(cfg *containerCfg)
WithCmd Function func WithCmd(args []string) ContainerOption
WithEnvVar Function func WithEnvVar(key string, value string) ContainerOption
WithMount Function func WithMount(dest string, trgt string) ContainerOption
WithPort Function func WithPort(port uint, target uint) ContainerOption

Maintained Alternatives

limited recent repository activity

#1 Gomega

Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.

Go Testing Libraries 2.3K stars 11.8K imported-by 100% confidence
96

#2 mockery

A mock code autogenerator for Go

Go Testing Libraries 7.1K stars 8 imported-by 100% confidence
95

#3 Testify

Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.

Go Testing Libraries 26.0K stars 15 imported-by 100% confidence
95

#4 toxiproxy

:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing

Go Testing Libraries 12.1K stars 30 imported-by 100% confidence
93

#5 keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

Go Testing Libraries 17.5K stars 0 imported-by 45% confidence
86

#6 hoverfly

Lightweight service virtualization/ API simulation / API mocking tool for developers and testers

Go Testing Libraries 2.5K stars 0 imported-by 100% confidence
80

Similar Packages

Go Testing Libraries

#1 Gomega

Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.

Go Testing Libraries 2.3K stars 11.8K imported-by 100% confidence
96

#2 mockery

A mock code autogenerator for Go

Go Testing Libraries 7.1K stars 8 imported-by 100% confidence
95

#3 Testify

Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.

Go Testing Libraries 26.0K stars 15 imported-by 100% confidence
95

#4 toxiproxy

:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing

Go Testing Libraries 12.1K stars 30 imported-by 100% confidence
93

#5 keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

Go Testing Libraries 17.5K stars 0 imported-by 45% confidence
86