mirror of
https://github.com/Infisical/infisical.git
synced 2026-05-02 03:02:03 -04:00
24 lines
332 B
Go
24 lines
332 B
Go
package tests
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
// Setup
|
|
fmt.Println("Setting up CLI...")
|
|
SetupCli()
|
|
fmt.Println("Performing user login...")
|
|
UserLoginCmd()
|
|
fmt.Println("Performing infisical init...")
|
|
UserInitCmd()
|
|
|
|
// Run the tests
|
|
code := m.Run()
|
|
|
|
// Exit
|
|
os.Exit(code)
|
|
}
|