flamingo.me/flamingo-commerce/v3@v3.11.0/test/integrationtest/projecttest/tests/restapi/main_test.go (about)

     1  //go:build integration
     2  // +build integration
     3  
     4  package restapi_test
     5  
     6  import (
     7  	"flag"
     8  	"os"
     9  	"testing"
    10  
    11  	"flamingo.me/flamingo-commerce/v3/test/integrationtest/projecttest/helper"
    12  )
    13  
    14  var FlamingoURL string
    15  
    16  // TestMain used for setup and teardown
    17  func TestMain(m *testing.M) {
    18  	flag.Parse()
    19  	info := helper.BootupDemoProject("../../config/")
    20  	FlamingoURL = info.BaseURL
    21  	result := m.Run()
    22  	info.ShutdownFunc()
    23  	os.Exit(result)
    24  }