https://github.com/ttab/eltest
Test helpers for Elephant
https://github.com/ttab/eltest
Last synced: 10 months ago
JSON representation
Test helpers for Elephant
- Host: GitHub
- URL: https://github.com/ttab/eltest
- Owner: ttab
- License: mit
- Created: 2025-01-14T12:09:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T02:35:21.000Z (over 1 year ago)
- Last Synced: 2025-03-04T19:44:01.005Z (over 1 year ago)
- Language: Go
- Size: 40 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eltest - Elephant test
Support library for writing elephant tests.
Takes care of setting up Postgres and Minio containers for intergration tests. See tests for usage, and don't miss setting up `TestMain()` in your own service:
``` go
func TestMain(m *testing.M) {
code := m.Run()
err := eltest.PurgeBackingServices()
if err != nil {
log.Printf("failed to purge backing services: %v", err)
}
os.Exit(code)
}
```