github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/app/slashcommands/main_test.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package slashcommands 5 6 import ( 7 "testing" 8 9 "github.com/masterhung0112/hk_server/v5/shared/mlog" 10 "github.com/masterhung0112/hk_server/v5/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 }