init_test.go 305 B

12345678910111213141516
  1. package service
  2. import (
  3. "flag"
  4. "os"
  5. "testing"
  6. "gitea.ckfah.com/cjjy/gocommon/pkg/boot"
  7. )
  8. func TestMain(m *testing.M) {
  9. flag.Parse()
  10. boot.Init(boot.DB, boot.Qconf, boot.Redis, boot.Trace, boot.NacosDiscover, boot.RocketMQProducer, boot.RocketMQConsumer)
  11. exitCode := m.Run()
  12. os.Exit(exitCode)
  13. }