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