---
title: "Discussion on \"How to populate a  PostgreSQL  test container in  Go for integration testing\" | Hashnode"
description: "Discussion on \"How to populate a  PostgreSQL  test container in  Go for integration testing\". In this article I will show you how to setup a minimal test using testcontainers-go. We are going to extend some ideas from my last article on generating fake data to to insert random data into the te"
url: "https://hashnode.com/posts/how-to-populate-a-postgresql-test-container-in-go-for-integration-testing/6a1d03a126a787c771063f52"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to populate a PostgreSQL test container in Go for integration testing](https://code.zikani.me/how-to-populate-a-postgresql-test-container-in-go-for-integration-testing?utm_source=hashnode&utm_medium=feed)

In this article I will show you how to setup a minimal test using testcontainers-go. We are going to extend some ideas from my last article on generating fake data to to insert random data into the te

May 30 · 6 min read · code.zikani.me  
Updated Jun 12  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#docker](https://hashnode.com/tag/docker)
-   [#testcontainers](https://hashnode.com/tag/testcontainers)
-   [#integration-testing](https://hashnode.com/tag/integration-testing)
-   [#testing](https://hashnode.com/tag/testing)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[Zikani Nyirenda Mwase](https://hashnode.com/@zikani)

@zikani

  
[View profile](https://hashnode.com/@zikani)

Wannabe Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
