testcontainers-go

Testcontainers for Go is 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.

MIT License

Stars
3.2K
Committers
233

Bot releases are visible (Hide)

testcontainers-go - v0.13.0

Published by mdelapenya over 2 years ago

What's Changed

  • Send optional platform spec when creating container (#395) @hairyhenderson
  • Fix some lint errors (#400) @hairyhenderson

๐Ÿš€ Features

  • expose CopyToContainer so file can be created only in memory (#417) @oktalz
  • add ability to stop container (#416) @oktalz
  • Remove custom built docker image on container termination (#405) @gaborszakacs
  • Remove intermediate containers when building from Dockerfile (#403) @gaborszakacs
  • Expose HostConfig Resources via ContainerRequest (#402) @nhatthm
  • Logger per container instance (#393) @baez90
  • added interface for logger (#385) @dhuckins
  • Replace ContainerRequest.BindMounts and ContainerRequest.VolumeMounts with ContainerRequest.Mounts as dedicated type (#386) @baez90
  • feat: additionally remove volumes by default on compose down (#381) @peter-evans
  • Add wait.ExecStrategy to wait on cmd exec in a container (#368) @alexey-medvedchikov

โš ๏ธ Breaking Changes

  • Replace ContainerRequest.BindMounts and ContainerRequest.VolumeMounts with ContainerRequest.Mounts as dedicated type (#386) @baez90

๐Ÿ› Bug Fixes

  • Add support for Docker Compose V2 (#377) @artamonovkirill
  • #391: remember service map from all docker compose files (#392) @ankan-pfc
  • Bugfix: log-consumer go-routine should recover from closed-connection (#369) @Chrisss93

๐Ÿ“– Documentation

  • add import statements to quick start (#408) @kevinawoo
  • docs/gotests: fixed broken link for garbage collector (#409) @kevinawoo
  • docs: fix ryuk link (#388) @dlsrb6342

๐Ÿงน Housekeeping

  • chore(ci): run tests for more recent Go versions (#401) @mdelapenya
  • chore: preparation to rename to main (#422) @mdelapenya
  • fix: use 1.18 format to install dependencies (#421) @mdelapenya
  • Upgrade dependencies to latest versions (#387) @baez90

๐Ÿ“ฆ Dependency updates

  • fix: use 1.18 format to install dependencies (#421) @mdelapenya
testcontainers-go - v0.12.0

Published by release-drafter[bot] almost 3 years ago

What's Changed

  • Add container examples to documentation, clean up README (#353) @jaredpetersen
  • Add canned kafka to module doc (#357) @franklinlindemberg
  • Added CopyFileFromContainer to DockerContainer (#347) @codepitbull
  • Fix default network is not initialize when get gateway ip (#349) @mrproliu
  • fix: cache http wait request body (#339) @ajcasagrande
  • Update README.md (#335) @jbl428
  • typo: 10 minutes -> 10 seconds (#346) @robsonpeixoto
  • Change t.Error() to t.Fatal() in example (#337) @candlerb
  • fix: store raw information of a container (#334) @mdelapenya
  • container information stauff (#271) @01101101M

โš ๏ธ Breaking Changes

  • Swap incorrect key and value of BindMounts and VolumeMounts (#354) @Lucaber

๐Ÿš€ Features

  • feat: support reading DOCKER_HOST from testcontainers props file (#373) @mdelapenya
  • Expose configuration of logger (#362) @rcrowe
  • Allow uid:gid to be specified during container creation (#363) @bamsammich
  • chore: add WaitForService method to compose (#344) @mdelapenya

๐Ÿ› Bug Fixes

  • Close docker provider client on container terminate (#358) @anjmao

๐Ÿ“– Documentation

  • docs: add users of testcontainers-go (#345) @mdelapenya

๐Ÿงน Housekeeping

  • fix: don't panic at an unexpected log type (#360) @Vladimir-Rom

๐Ÿ“ฆ Dependency updates

  • chore(deps): bump github.com/docker/docker from 20.10.9+incompatible to 20.10.11+incompatible (#383) @dependabot
  • Updated default ryuk image to testcontainers/ryuk:0.3.3. (#376) @silh
  • Bump runc (#378) @benmoss
  • chore(deps): bump mkdocs from 1.0.4 to 1.2.3 (#367) @dependabot
  • chore(deps): bump github.com/docker/docker from 20.10.8+incompatible to 20.10.9+incompatible (#364) @dependabot
  • chore(deps): bump github.com/google/uuid from 1.2.0 to 1.3.0 (#333) @dependabot
  • chore(deps): bump github.com/docker/docker from 20.10.7+incompatible to 20.10.8+incompatible (#340) @dependabot
testcontainers-go - v0.11.1

Published by release-drafter[bot] over 3 years ago

What's Changed

๐Ÿ› Bug Fixes

  • fix(compose): filter containers by service name only (#330) @mdelapenya

๐Ÿ“– Documentation

  • Fix misspelling (#328) @msal4
testcontainers-go - v0.11.0

Published by release-drafter[bot] over 3 years ago

What's Changed

  • Retry follow logs request on closed connection (#323) @rmfitzpatrick
  • Add instrumentations for containers created with Dockerfile (#311) @xicoalmeida
  • close reaper go routines on DockerContainer.Terminate & DockerNetwork.Remove (#320) @Eun
  • Wait strategies must poll ports (#295) @programminh

๐Ÿš€ Features

  • feat: add wait-for support for compose (#308) @mdelapenya

๐Ÿ› Bug Fixes

  • Fix/wait log exact number occurences (#298) @FlorianLehmann

๐Ÿ“ฆ Dependency updates

  • Upgrade to GitHub-native Dependabot (#316) @dependabot-preview
  • build(deps): bump github.com/docker/docker from 20.10.5+incompatible to 20.10.6+incompatible (#309) @dependabot-preview
  • build(deps): bump github.com/Microsoft/hcsshim from 0.8.15 to 0.8.16 (#307) @dependabot-preview
  • build(deps): bump github.com/go-sql-driver/mysql from 1.5.0 to 1.6.0 (#305) @dependabot-preview
  • Bump jinja2 from 2.11.2 to 2.11.3 (#296) @dependabot
testcontainers-go - v0.10.0

Published by release-drafter[bot] over 3 years ago

What's Changed

  • Ensuring compilation for windows, darwin, and linux (#270) @ClaytonNorthey92
  • Remove Travis (#287) @gianarb
  • Fix typos (#281) @sashayakovtseva
  • Update Docker dependency to Docker 20.10.3. (#283) @michielboekhoff
  • feat: add logging on image pull error (#272) @tobiaszheller
  • chore: add GH action badge (#265) @mdelapenya
  • Remove gin dependency (#262) @colega
  • feature: move to github action #242 (#257) @Bablzz
  • Fix: comment log strategy (#256) @Bablzz
  • fix: fixed typos (#254) @Bablzz
  • Resolving issue #248 (#249) @ikolomiyets

๐Ÿ“– Documentation

  • Document our approach to modules (#268) @gianarb
  • docs: fix variable type (#266) @mdelapenya

๐Ÿงน Housekeeping

  • Add a GH action stage to send coverage reports to Codecov (#264) @mdelapenya
  • chore: support removing orphan containers when destroying the compose (#267) @mdelapenya
  • Fix shellcheck issues (#251) @Bablzz

๐Ÿ“ฆ Dependency updates

  • Bump github.com/Microsoft/hcsshim from 0.8.14 to 0.8.15 (#292) @dependabot-preview
  • Bump github.com/docker/docker from 20.10.4+incompatible to 20.10.5+incompatible (#291) @dependabot-preview
  • Bump github.com/docker/docker from 20.10.3+incompatible to 20.10.4+incompatible (#290) @dependabot-preview
  • Bump github.com/Microsoft/hcsshim from 0.8.7 to 0.8.14 (#288) @dependabot-preview
  • Bump github.com/google/uuid from 1.1.4 to 1.2.0 (#289) @dependabot-preview
  • Bump github.com/google/uuid from 1.1.4 to 1.2.0 (#280) @dependabot-preview
  • Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 (#277) @dependabot-preview
  • Bump github.com/google/uuid from 1.1.2 to 1.1.4 (#276) @dependabot-preview
  • Bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#269) @dependabot-preview
testcontainers-go - v0.9.0

Published by release-drafter[bot] about 4 years ago

What's Changed

  • Poll interval (#200) @mniak
  • refector wait.HTTPStrategy (#221) @islishude

๐Ÿ› Bug Fixes

  • Issue #243: Introducing the default network in case "bridge" is disabled (#244) @ikolomiyets
  • PR #247: bump docker/docker to v19.03.13 @gianarb
testcontainers-go - v0.8.0

Published by release-drafter[bot] about 4 years ago

What's Changed

  • Use NetworkInspect to get the gateway's IP and fallback to getDefaultGatewayIP when fails (#237) @namco1992
  • Added support for copy file to container (#226) @franklinlindemberg
  • chore: run travis in multiple versions of Go (#233) @mdelapenya
  • Allow hostname to be configured (#227) @fbiville

๐Ÿ› Bug Fixes

  • Close db connection when sql.wait is done (#220) @islishude

๐Ÿ“– Documentation

  • Fix docs index (#218) @soroushj

๐Ÿงน Housekeeping

  • chore: simplify complex docker-compose file (#217) @mdelapenya

๐Ÿ“ฆ Dependency updates

  • Bump github.com/google/uuid from 1.1.1 to 1.1.2 (#236) @dependabot-preview
  • update docker/docker package version (#229) @snowhork
  • Bump github.com/go-redis/redis from 6.15.8+incompatible to 6.15.9+incompatible (#230) @dependabot-preview
  • github.com/docker/distribution should be an indirect dependency (#222) @islishude
testcontainers-go - v0.7.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Fix typo and URL in docs (#205) @mdelapenya
  • Small tweaks to docs (#204) @rnorth
  • chore: do not raise panic in compose, use exec error instead so the client code can handle it (#189) @mdelapenya

๐Ÿš€ Features

  • Add pass-through for entrypoint to ContainerRequest (#209) @aklinkert
  • feat: implement skip utility function for testing (#181) @gianarb

BC Break

  • Use default timeout in SQL waiter (#196) @mniak

๐Ÿ› Bug Fixes

  • fixes #192 - guard access to reaper with a mutex (#198) @dvulpe

๐Ÿ“– Documentation

  • Grammar and spelling fixes (#211) @flimzy
  • move contents from readme to docs (#201) @gianarb
  • Bootstrap documentation with mkdocs (#191) @gianarb
  • docs: add example for wait http (#184) @gianarb

๐Ÿงน Housekeeping

  • wait strategy where not properly set (#215) @gianarb
  • use nginx when possible when writing test (#213) @gianarb
  • Grammar and spelling fixes (#211) @flimzy
  • feat: implement skip utility function for testing (#181) @gianarb

๐Ÿ“ฆ Dependency updates

  • Bump github.com/stretchr/testify from 1.6.0 to 1.6.1 (#206) @dependabot-preview
  • Bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#202) @dependabot-preview
  • Bump github.com/go-redis/redis from 6.15.7+incompatible to 6.15.8+incompatible (#199) @dependabot-preview
  • Bump pyyaml from 3.13 to 5.1 (#195) @dependabot
  • Bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0 (#194) @dependabot-preview
  • Bump github.com/gin-gonic/gin from 1.6.2 to 1.6.3 (#190) @dependabot-preview
  • Bump github.com/stretchr/testify from 1.4.0 to 1.5.1 (#187) @dependabot-preview
testcontainers-go - v0.6.0

Published by release-drafter[bot] over 4 years ago

What's Changed

๐Ÿš€ Features

  • (#25) Create very basic implementation of Local Docker Compose (#97) @mdelapenya
testcontainers-go - v0.5.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Added ContainerIP to retrieve ip of container from primary network (#179) @gianarb

๐Ÿš€ Features

  • #173: Reaper reuse (#176) @ikolomiyets

๐Ÿ› Bug Fixes

  • Fix/159 wait port windows (#180) @gianarb
testcontainers-go - v0.4.0

Published by release-drafter[bot] over 4 years ago

What's Changed

๐Ÿš€ Features

  • Force testcontainers to always pull images when creating container (#175) @ikolomiyets

๐Ÿ“ฆ Dependency updates

  • chore(vendor): update docker engine and uuid (#177) @gianarb
  • Bump github.com/gin-gonic/gin from 1.6.1 to 1.6.2 (#170) @dependabot-preview
  • Bump github.com/gin-gonic/gin from 1.6.0 to 1.6.1 (#168) @dependabot-preview
  • Bump github.com/gin-gonic/gin from 1.5.0 to 1.6.0 (#167) @dependabot-preview
testcontainers-go - v0.3.1

Published by release-drafter[bot] over 4 years ago

๐Ÿ› Bug Fixes

  • Fix infinite loop caused by "image not found" (#162) @erdemtoraman
  • Bump travis-ci Go to 1.14.x (#161) @gianarb
  • Fix reaper connect failure by waiting for listening port (#154) @itaischwartz
testcontainers-go - v0.3.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • #150 If networkMode host ForListeningPort does not work (#151) @Bablzz
  • Feature #133 - Add a FollowOutput method to attach log consumers to (#135) @ClaytonNorthey92
testcontainers-go - v0.2.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • (#128) Throw an error when bash is not installed in the target container (#129) @mdelapenya
  • #136 log start-up progress (#137) @nikolayk812
  • #145 Update default reaper images to 0.2.3 (#148) @Bablzz
  • fix retry logic (#147) @dmarkhas
testcontainers-go - v0.1.1

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Fix panic in wait host port (#144) @gianarb
testcontainers-go - v0.1.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Add ability to configure tmpfs for a container (#131) @rieske
  • #138 Add NetworkMode host (#140) @Bablzz
  • feat: allow viewing of logs from stopped container (#120) @ClaytonNorthey92
  • (#124) Fix Go fmt (#125) @mdelapenya

๐Ÿ“ฆ Dependency updates

  • Bump github.com/go-redis/redis from 6.15.6+incompatible to 6.15.7+incompatible (#141) @dependabot-preview
  • Bump github.com/pkg/errors from 0.9.0 to 0.9.1 (#134) @dependabot-preview
  • Bump github.com/pkg/errors from 0.8.1 to 0.9.0 (#132) @dependabot-preview
  • Bump github.com/go-sql-driver/mysql from 1.4.1 to 1.5.0 (#130) @dependabot-preview
testcontainers-go - v0.0.10

Published by release-drafter[bot] almost 5 years ago

What's Changed

  • Support volume mounts (#116) @uportalis
  • Update README.md (#123) @elyzion
  • allow alternative reaper docker registry (#119) @makasprzak
  • Add more info about failing test on Travis (#115) @mdelapenya
testcontainers-go - v0.0.9

Published by release-drafter[bot] almost 5 years ago

What's Changed

  • fix: Add Go formatting to README code block (#104) @ClaytonNorthey92
  • #110 feature: Context as io.Reader (#113) @ClaytonNorthey92
  • #46 host port waiting strategy inside container (#114) @nikolayk812
  • Retry on any http failure (#109) @gavinbunney
  • Added few examples around Container Create and Network (#99) @gianarb
  • Added occurrence for the WaitLogStrategy (#100) @gianarb

๐Ÿ› Bug Fixes

  • (#93) Reset internal state after container.Terminate() (#94) @mdelapenya

๐Ÿ“ฆ Dependency updates

  • Bump github.com/go-redis/redis from 6.15.5+incompatible to 6.15.6+incompatible (#103) @dependabot-preview
  • Bump github.com/go-redis/redis from 6.15.2+incompatible to 6.15.5+incompatible (#95) @dependabot-preview
testcontainers-go - v0.0.8

Published by release-drafter[bot] about 5 years ago

What's Changed

๐Ÿš€ Features

  • Added the ability to build from a Dockerfile (#84) @ClaytonNorthey92

๐Ÿ› Bug Fixes

  • Add v to release name or go modules will complain (#91) @gianarb

๐Ÿ“ฆ Dependency updates

  • Bump github.com/pkg/errors from 0.8.0 to 0.8.1 (#92) @dependabot-preview
testcontainers-go - v0.0.7

Published by release-drafter[bot] about 5 years ago

What's Changed

  • (#73) Support attaching containers to different networks than bridge (#76) @mdelapenya

BC Break

  • Using a slice of strings ([]string) for Docker Cmd. (#87) @ClaytonNorthey92
Package Rankings
Top 0.73% on Proxy.golang.org
Badges
Extracted from project README
Main pipeline GoDoc Reference Go Report Card Quality Gate Status License Open in GitHub Codespaces Join our Slack