test: restructed setup and added scripting for infisical init

This commit is contained in:
Sheen Capadngan
2024-05-01 21:39:20 +08:00
parent 505ccdf8ea
commit a5ca96f2df
8 changed files with 75 additions and 52 deletions

23
cli/test/main_test.go Normal file
View File

@@ -0,0 +1,23 @@
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)
}