An open API service indexing awesome lists of open source software.

https://github.com/nwillc/testdb

An example of using an embedded container for DB testing
https://github.com/nwillc/testdb

Last synced: 4 months ago
JSON representation

An example of using an embedded container for DB testing

Awesome Lists containing this project

README

          

[![license](https://img.shields.io/github/license/nwillc/testdb.svg)](https://tldrlegal.com/license/-isc-license)
[![CI](https://github.com/nwillc/testdb/workflows/CI/badge.svg)](https://github.com/nwillc/testdb/actions?query=workflow%3CI)
[![Go Report Card](https://goreportcard.com/badge/github.com/nwillc/testdb)](https://goreportcard.com/report/github.com/nwillc/testdb)
---
# testdb

An example of using an embedded container for DB testing in Go.

- Uses embedded container for testing
- Testing both a GORM and go-pg example
- Run through Github Actions to show containers work their without change

See [this write up](https://levelup.gitconnected.com/embedded-database-in-go-testing-10d29a8e454a?sk=edcbb02529136f5f2e3be43c84e834c7).