github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/migrations/main_test.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package migrations 5 6 import ( 7 "testing" 8 9 "github.com/mattermost/mattermost-server/v5/mlog" 10 "github.com/mattermost/mattermost-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 }