You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main_test.go 421B

12345678910111213141516171819202122
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package cmd
  4. import (
  5. "testing"
  6. "code.gitea.io/gitea/models/unittest"
  7. "code.gitea.io/gitea/modules/setting"
  8. )
  9. func init() {
  10. setting.SetCustomPathAndConf("", "", "")
  11. setting.InitProviderAndLoadCommonSettingsForTest()
  12. }
  13. func TestMain(m *testing.M) {
  14. unittest.MainTest(m, &unittest.TestOptions{
  15. GiteaRootPath: "..",
  16. })
  17. }