github.com/adacta-ru/mattermost-server/v6@v6.0.0/web/main_test.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package web
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/adacta-ru/mattermost-server/v6/mlog"
    10  	"github.com/adacta-ru/mattermost-server/v6/testlib"
    11  )
    12  
    13  var mainHelper *testlib.MainHelper
    14  
    15  func TestMain(m *testing.M) {
    16  	var options = testlib.HelperOptions{
    17  		EnableStore:     true,
    18  		EnableResources: true,
    19  	}
    20  
    21  	mlog.DisableZap()
    22  
    23  	mainHelper = testlib.NewMainHelperWithOptions(&options)
    24  	defer mainHelper.Close()
    25  
    26  	mainHelper.Main(m)
    27  }