Fix some tests : make coverage -> test (#2492)

* Fix test : make coverage -> test

* Refactor integration tests to be able to run them in parallel

* Add custom local repository temp path
This commit is contained in:
Antoine GIRARD 2017-09-12 07:51:12 +02:00 committed by Bo-Yi Wu
parent eab4579e17
commit 69dfe43ffc
109 changed files with 38 additions and 24 deletions

View file

@ -118,8 +118,8 @@ func initIntegrationTest() {
func prepareTestEnv(t testing.TB) {
assert.NoError(t, models.LoadFixtures())
assert.NoError(t, os.RemoveAll("integrations/gitea-integration"))
assert.NoError(t, com.CopyDir("integrations/gitea-integration-meta", "integrations/gitea-integration"))
assert.NoError(t, os.RemoveAll(setting.RepoRootPath))
assert.NoError(t, com.CopyDir("integrations/gitea-repositories-meta", setting.RepoRootPath))
}
type TestSession struct {