mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-29 00:59:40 +07:00
25 lines
285 B
Go
25 lines
285 B
Go
package tests
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"testing"
|
|
|
|
"rul.sh/vaulterm/db"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
log.Println("Starting tests...")
|
|
test := NewTest(nil)
|
|
|
|
// Run all tests
|
|
code := m.Run()
|
|
|
|
log.Println("Cleaning up...")
|
|
|
|
// Clean up
|
|
test.Close()
|
|
db.Close()
|
|
os.Exit(code)
|
|
}
|