yao/engine/init_test.go
2023-02-01 17:25:11 +08:00

24 lines
289 B
Go

package engine
import (
"os"
"testing"
"github.com/yaoapp/yao/config"
)
var cfg config.Config
func TestMain(m *testing.M) {
// 加载模型等
Load(config.Conf)
// Run test suites
exitVal := m.Run()
// we can do clean up code here
// gou.KillPlugins()
os.Exit(exitVal)
}