# mysqltest **Repository Path**: mirrors_rubenv/mysqltest ## Basic Information - **Project Name**: mysqltest - **Description**: MySQL / MariaDB test helper for Go - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mysqltest > Go library to spawn single-use MySQL / MariaDB servers for unit testing [![Build Status](https://github.com/rubenv/mysqltest/workflows/Test/badge.svg)](https://github.com/rubenv/mysqltest/actions) [![GoDoc](https://godoc.org/github.com/rubenv/mysqltest?status.png)](https://godoc.org/github.com/rubenv/mysqltest) Spawns a MySQL / MariaDB server with a single database configured. Ideal for unit tests where you want a clean instance each time. Then clean up afterwards. Features: * Starts a clean isolated MySQL / MariaDB database * Tested on Fedora and Ubuntu ## Usage In your unit test: ```go mysql, err := mysqltest.Start() defer mysql.Stop() // Do something with mysql.DB (which is a *sql.DB) ``` ## License This library is distributed under the [MIT](LICENSE) license.