code.gitea.io/gitea@v1.21.7/models/db/main_test.go (about)

     1  // Copyright 2020 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package db_test
     5  
     6  import (
     7  	"path/filepath"
     8  	"testing"
     9  
    10  	"code.gitea.io/gitea/models/unittest"
    11  
    12  	_ "code.gitea.io/gitea/models"
    13  	_ "code.gitea.io/gitea/models/repo"
    14  )
    15  
    16  func TestMain(m *testing.M) {
    17  	unittest.MainTest(m, &unittest.TestOptions{
    18  		GiteaRootPath: filepath.Join("..", ".."),
    19  	})
    20  }