clortho/lib/systems/systems_test.go
Maxime Duchene-Savard ea2bb235a2 work
2025-04-14 23:50:22 -04:00

25 lines
310 B
Go

package systems
import (
"clortho/lib/db"
"fmt"
"os"
"testing"
)
func TestMain(m *testing.M) {
// Global setup
fmt.Println("Setting up resources...")
db.InitDb()
exitCode := m.Run() // Run all tests
// Global teardown
fmt.Println("Cleaning up resources...")
db.ResetDb()
os.Exit(exitCode)
}